KT-2438 Prohibit inner classes with the same name

Rewrite checkClassObjectInnerClassNames() to also
check for name clashes between inner classes of a
single class
 #KT-2438 Fixed
This commit is contained in:
Alexander Udalov
2012-07-23 22:31:44 +04:00
parent 97abf9ee85
commit 4712dd759c
13 changed files with 101 additions and 25 deletions
@@ -1898,6 +1898,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/redeclarations/kt2247.kt");
}
@TestMetadata("kt2438.kt")
public void testKt2438() throws Exception {
doTest("compiler/testData/diagnostics/tests/redeclarations/kt2438.kt");
}
@TestMetadata("MultiFilePackageRedeclaration.kt")
public void testMultiFilePackageRedeclaration() throws Exception {
doTest("compiler/testData/diagnostics/tests/redeclarations/MultiFilePackageRedeclaration.kt");