Add JVM ABI K1/K2 consistency tests

This commit is contained in:
vladislav.grechko
2023-12-26 10:18:19 +00:00
committed by Space Team
parent 5a1fb78fcd
commit 34bac48541
1104 changed files with 88413 additions and 66 deletions
@@ -0,0 +1,9 @@
MODULE main
CLASS Cached.class
CLASS METADATA
PROPERTY getStore()Ljava/util/HashMap;
Property: class.metadata.property.returnType
K1
java/util/HashMap<T#0, T#1> /* = kotlin/collections/HashMap^<T#0, T#1> */
K2
java/util/HashMap<T#0, T#1>
@@ -3,6 +3,7 @@
//KT-3190 Compiler crash if function called 'invoke' calls a closure
// IGNORE_BACKEND: JS
// JS backend does not allow to implement Function{N} interfaces
// JVM_ABI_K1_K2_DIFF: KT-63864
fun box(): String {
val test = Cached<Int,Int>({ it + 2 })