Front-end: Prohibit to create inner class with the same name as a property

This commit is contained in:
Natalia.Ukhorskaya
2012-08-31 11:15:57 +04:00
parent 5038c906b2
commit 1ef8818556
3 changed files with 53 additions and 14 deletions
@@ -2265,6 +2265,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/redeclarations/PropertyAndFunInClass.kt");
}
@TestMetadata("PropertyAndInnerClass.kt")
public void testPropertyAndInnerClass() throws Exception {
doTest("compiler/testData/diagnostics/tests/redeclarations/PropertyAndInnerClass.kt");
}
@TestMetadata("Redeclarations.kt")
public void testRedeclarations() throws Exception {
doTest("compiler/testData/diagnostics/tests/redeclarations/Redeclarations.kt");