Outer's superclass' method is now inaccessible from nested

Also the diagnostic error message reported the wrong nested class name: it
should be the nested class in the hierarchy which is static, not the class of
the scope where we're checking the accessibility
This commit is contained in:
Alexander Udalov
2013-01-22 16:41:29 +04:00
parent f84d00eec9
commit a0a22b7be6
6 changed files with 39 additions and 20 deletions
@@ -2481,6 +2481,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/inner/outerProtectedMember.kt");
}
@TestMetadata("outerSuperClassMember.kt")
public void testOuterSuperClassMember() throws Exception {
doTest("compiler/testData/diagnostics/tests/inner/outerSuperClassMember.kt");
}
@TestMetadata("traits.kt")
public void testTraits() throws Exception {
doTest("compiler/testData/diagnostics/tests/inner/traits.kt");