Choosing most specific super member when building fake override. Previously, random one was chosen.
This commit is contained in:
@@ -444,6 +444,21 @@ public class LoadCompiledKotlinTestGenerated extends AbstractLoadCompiledKotlinT
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/loadKotlin/fun"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("InheritMethodsDifferentReturnTypesAndVisibilities.kt")
|
||||
public void testInheritMethodsDifferentReturnTypesAndVisibilities() throws Exception {
|
||||
doTestWithAccessors("compiler/testData/loadKotlin/fun/InheritMethodsDifferentReturnTypesAndVisibilities.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritValAndVar.kt")
|
||||
public void testInheritValAndVar() throws Exception {
|
||||
doTestWithAccessors("compiler/testData/loadKotlin/fun/InheritValAndVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritValsDifferentTypes.kt")
|
||||
public void testInheritValsDifferentTypes() throws Exception {
|
||||
doTestWithAccessors("compiler/testData/loadKotlin/fun/InheritValsDifferentTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NoSamAdapter.kt")
|
||||
public void testNoSamAdapter() throws Exception {
|
||||
doTestWithAccessors("compiler/testData/loadKotlin/fun/NoSamAdapter.kt");
|
||||
|
||||
@@ -94,6 +94,16 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
||||
doTest("compiler/testData/loadJava/compiledJavaCompareWithKotlin/FinalFieldAsVal.java");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritMethodsDifferentReturnTypes.java")
|
||||
public void testInheritMethodsDifferentReturnTypes() throws Exception {
|
||||
doTest("compiler/testData/loadJava/compiledJavaCompareWithKotlin/InheritMethodsDifferentReturnTypes.java");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritMethodsDifferentReturnTypesGeneric.java")
|
||||
public void testInheritMethodsDifferentReturnTypesGeneric() throws Exception {
|
||||
doTest("compiler/testData/loadJava/compiledJavaCompareWithKotlin/InheritMethodsDifferentReturnTypesGeneric.java");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClass.java")
|
||||
public void testInnerClass() throws Exception {
|
||||
doTest("compiler/testData/loadJava/compiledJavaCompareWithKotlin/InnerClass.java");
|
||||
|
||||
+25
@@ -446,6 +446,21 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/loadKotlin/fun"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("InheritMethodsDifferentReturnTypesAndVisibilities.kt")
|
||||
public void testInheritMethodsDifferentReturnTypesAndVisibilities() throws Exception {
|
||||
doTestCheckingPrimaryConstructorsAndAccessors("compiler/testData/loadKotlin/fun/InheritMethodsDifferentReturnTypesAndVisibilities.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritValAndVar.kt")
|
||||
public void testInheritValAndVar() throws Exception {
|
||||
doTestCheckingPrimaryConstructorsAndAccessors("compiler/testData/loadKotlin/fun/InheritValAndVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritValsDifferentTypes.kt")
|
||||
public void testInheritValsDifferentTypes() throws Exception {
|
||||
doTestCheckingPrimaryConstructorsAndAccessors("compiler/testData/loadKotlin/fun/InheritValsDifferentTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NoSamAdapter.kt")
|
||||
public void testNoSamAdapter() throws Exception {
|
||||
doTestCheckingPrimaryConstructorsAndAccessors("compiler/testData/loadKotlin/fun/NoSamAdapter.kt");
|
||||
@@ -1186,6 +1201,16 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
doTestNotCheckingPrimaryConstructors("compiler/testData/loadJava/compiledJavaCompareWithKotlin/FinalFieldAsVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritMethodsDifferentReturnTypes.kt")
|
||||
public void testInheritMethodsDifferentReturnTypes() throws Exception {
|
||||
doTestNotCheckingPrimaryConstructors("compiler/testData/loadJava/compiledJavaCompareWithKotlin/InheritMethodsDifferentReturnTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritMethodsDifferentReturnTypesGeneric.kt")
|
||||
public void testInheritMethodsDifferentReturnTypesGeneric() throws Exception {
|
||||
doTestNotCheckingPrimaryConstructors("compiler/testData/loadJava/compiledJavaCompareWithKotlin/InheritMethodsDifferentReturnTypesGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClass.kt")
|
||||
public void testInnerClass() throws Exception {
|
||||
doTestNotCheckingPrimaryConstructors("compiler/testData/loadJava/compiledJavaCompareWithKotlin/InnerClass.kt");
|
||||
|
||||
Reference in New Issue
Block a user