Fixed KT-2418 Front-end allows enum constants with same name

This commit is contained in:
Natalia.Ukhorskaya
2012-08-31 11:16:35 +04:00
parent 1ef8818556
commit dd3323cae2
3 changed files with 40 additions and 0 deletions
@@ -2245,6 +2245,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/redeclarations/kt2247.kt");
}
@TestMetadata("kt2418.kt")
public void testKt2418() throws Exception {
doTest("compiler/testData/diagnostics/tests/redeclarations/kt2418.kt");
}
@TestMetadata("kt2438.kt")
public void testKt2438() throws Exception {
doTest("compiler/testData/diagnostics/tests/redeclarations/kt2438.kt");