Regression codegen test #KT-8344 Obsolete
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
// A.kt
|
||||||
|
package first
|
||||||
|
|
||||||
|
open class A {
|
||||||
|
protected open fun test(): String = "FAIL (A)"
|
||||||
|
}
|
||||||
|
|
||||||
|
fun box() = second.C().value()
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
// B.kt
|
||||||
|
// See also KT-8344: INVOKESPECIAL instead of INVOKEVIRTUAL in accessor
|
||||||
|
|
||||||
|
package second
|
||||||
|
|
||||||
|
import first.A
|
||||||
|
|
||||||
|
public abstract class B(): A() {
|
||||||
|
val value = {
|
||||||
|
test()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class C: B() {
|
||||||
|
override fun test() = "OK"
|
||||||
|
}
|
||||||
|
|
||||||
+6
@@ -149,6 +149,12 @@ public class BlackBoxMultiFileCodegenTestGenerated extends AbstractBlackBoxCodeg
|
|||||||
doTestMultiFile(fileName);
|
doTestMultiFile(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("protectedFromLambda")
|
||||||
|
public void testProtectedFromLambda() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxMultiFile/protectedFromLambda/");
|
||||||
|
doTestMultiFile(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("samWrappersDifferentFiles")
|
@TestMetadata("samWrappersDifferentFiles")
|
||||||
public void testSamWrappersDifferentFiles() throws Exception {
|
public void testSamWrappersDifferentFiles() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxMultiFile/samWrappersDifferentFiles/");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxMultiFile/samWrappersDifferentFiles/");
|
||||||
|
|||||||
Reference in New Issue
Block a user