enclosingクラスと同じ名前の内部クラスは定義できない
JLS2 6.3 より。でもなぜ?
class SameNameType { // コンパイルエラー class SameNameType { } void test() { // コンパイルエラー class SameNameType { } } }
JLS2 6.3 より。でもなぜ?
class SameNameType { // コンパイルエラー class SameNameType { } void test() { // コンパイルエラー class SameNameType { } } }