KT-13342 Unqualified super call should not resolve to a method of supertype overridden in another supertype

This commit is contained in:
Dmitry Petrov
2017-03-07 16:13:29 +03:00
parent 954c1d853d
commit 9a2c9ed30e
4 changed files with 94 additions and 8 deletions
@@ -21783,6 +21783,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("withMethodOverriddenInAnotherSupertype.kt")
public void testWithMethodOverriddenInAnotherSupertype() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/withMethodOverriddenInAnotherSupertype.kt");
doTest(fileName);
}
@TestMetadata("withMethodsOfAny.kt")
public void testWithMethodsOfAny() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/withMethodsOfAny.kt");