Add JVM ABI K1/K2 consistency tests
This commit is contained in:
committed by
Space Team
parent
5a1fb78fcd
commit
34bac48541
+9
@@ -0,0 +1,9 @@
|
||||
MODULE main
|
||||
CLASS FunInterfaceConstructorIsKFunctionKt.class
|
||||
PACKAGE METADATA
|
||||
PROPERTY getKr()Lkotlin/reflect/KFunction;
|
||||
Property: class.metadata.property.returnType
|
||||
K1
|
||||
kotlin/reflect/KFunction1<@kotlin/ParameterName(name = "function") kotlin/Function0<kotlin/Unit>, KRunnable>
|
||||
K2
|
||||
kotlin/reflect/KFunction1<kotlin/Function0<kotlin/Unit>, KRunnable>
|
||||
+2
@@ -6,6 +6,8 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// ^ Failed: kr is class Function1
|
||||
|
||||
// JVM_ABI_K1_K2_DIFF: KT-63861
|
||||
|
||||
// WITH_REFLECT
|
||||
|
||||
import kotlin.reflect.KFunction
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
MODULE main
|
||||
CLASS FunInterfaceConstructorOfImplicitKFunctionTypeKt.class
|
||||
PACKAGE METADATA
|
||||
PROPERTY getKr()Lkotlin/reflect/KFunction;
|
||||
Property: class.metadata.property.returnType
|
||||
K1
|
||||
kotlin/reflect/KFunction1<@kotlin/ParameterName(name = "function") kotlin/Function0<kotlin/Unit>, KRunnable>
|
||||
K2
|
||||
kotlin/reflect/KFunction1<kotlin/Function0<kotlin/Unit>, KRunnable>
|
||||
+2
@@ -3,6 +3,8 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
// ^ unsupported in old JVM BE
|
||||
|
||||
// JVM_ABI_K1_K2_DIFF: KT-63861
|
||||
|
||||
fun interface KRunnable {
|
||||
fun run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user