unqualified super: should be able to invoke methods of Any without extra hassle

when Any is an implicit immediate superclass
This commit is contained in:
Dmitry Petrov
2015-08-06 14:44:04 +03:00
parent 3b03cfaf4f
commit b59bf6227f
13 changed files with 301 additions and 30 deletions
@@ -14584,6 +14584,30 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithUnresolvedBase.kt");
doTest(fileName);
}
@TestMetadata("withAmbiguousMethodOfAny.kt")
public void testWithAmbiguousMethodOfAny() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/withAmbiguousMethodOfAny.kt");
doTest(fileName);
}
@TestMetadata("withMethodOfAnyImplementedInSuperInterface.kt")
public void testWithMethodOfAnyImplementedInSuperInterface() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/withMethodOfAnyImplementedInSuperInterface.kt");
doTest(fileName);
}
@TestMetadata("withMethodOfAnyOverridenInInterface.kt")
public void testWithMethodOfAnyOverridenInInterface() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/withMethodOfAnyOverridenInInterface.kt");
doTest(fileName);
}
@TestMetadata("withMethodsOfAny.kt")
public void testWithMethodsOfAny() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/withMethodsOfAny.kt");
doTest(fileName);
}
}
}