Add JVM ABI K1/K2 consistency tests
This commit is contained in:
committed by
Space Team
parent
5a1fb78fcd
commit
34bac48541
@@ -0,0 +1,41 @@
|
||||
MODULE main
|
||||
CLASS Smth.class
|
||||
Annotation: class.invisibleAnnotations
|
||||
K1
|
||||
@Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP
|
||||
fieldInConstructorParens.kt
|
||||
Kotlin
|
||||
*S Kotlin
|
||||
*F
|
||||
+ 1 fieldInConstructorParens.kt
|
||||
Smth
|
||||
*L
|
||||
1#1,28:1
|
||||
17#1,5:29
|
||||
*S KotlinDebug
|
||||
*F
|
||||
+ 1 fieldInConstructorParens.kt
|
||||
Smth
|
||||
*L
|
||||
12#1:29,5
|
||||
*E
|
||||
} )
|
||||
K2
|
||||
@Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP
|
||||
fieldInConstructorParens.kt
|
||||
Kotlin
|
||||
*S Kotlin
|
||||
*F
|
||||
+ 1 fieldInConstructorParens.kt
|
||||
Smth
|
||||
*L
|
||||
1#1,28:1
|
||||
20#1,2:29
|
||||
*S KotlinDebug
|
||||
*F
|
||||
+ 1 fieldInConstructorParens.kt
|
||||
Smth
|
||||
*L
|
||||
12#1:29,2
|
||||
*E
|
||||
} )
|
||||
@@ -1,6 +1,8 @@
|
||||
// !OPT_IN: kotlin.contracts.ExperimentalContracts
|
||||
// WITH_STDLIB
|
||||
|
||||
// JVM_ABI_K1_K2_DIFF: KT-62464
|
||||
|
||||
import kotlin.contracts.*
|
||||
|
||||
class Smth {
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
MODULE main
|
||||
Missing in K1
|
||||
Kt39374Kt$runBlocking$1.class
|
||||
Missing in K2
|
||||
Kt39374Kt$runBlocking$2.class
|
||||
@@ -1,5 +1,7 @@
|
||||
// WITH_STDLIB
|
||||
// WITH_COROUTINES
|
||||
// JVM_ABI_K1_K2_DIFF: KT-62845
|
||||
|
||||
import kotlin.contracts.*
|
||||
import kotlin.coroutines.*
|
||||
import helpers.*
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
MODULE main
|
||||
CLASS Kt45236Kt.class
|
||||
PACKAGE METADATA
|
||||
FUNCTION successOrThrow()V
|
||||
Property: class.metadata.function.typeParameters
|
||||
K1
|
||||
<T#0 /* T */ : kotlin/Any>
|
||||
K2
|
||||
<T#1 /* T */ : kotlin/Any>
|
||||
@@ -1,5 +1,8 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
// JVM_ABI_K1_K2_DIFF: KT-63875
|
||||
|
||||
|
||||
import kotlin.contracts.ExperimentalContracts
|
||||
import kotlin.contracts.contract
|
||||
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
MODULE main
|
||||
CLASS Kt47168Kt.class
|
||||
Annotation: class.invisibleAnnotations
|
||||
K1
|
||||
@Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP
|
||||
kt47168.kt
|
||||
Kotlin
|
||||
*S Kotlin
|
||||
*F
|
||||
+ 1 kt47168.kt
|
||||
Kt47168Kt
|
||||
*L
|
||||
1#1,19:1
|
||||
8#1,5:20
|
||||
*S KotlinDebug
|
||||
*F
|
||||
+ 1 kt47168.kt
|
||||
Kt47168Kt
|
||||
*L
|
||||
17#1:20,5
|
||||
*E
|
||||
} )
|
||||
K2
|
||||
@Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP
|
||||
kt47168.kt
|
||||
Kotlin
|
||||
*S Kotlin
|
||||
*F
|
||||
+ 1 kt47168.kt
|
||||
Kt47168Kt
|
||||
*L
|
||||
1#1,19:1
|
||||
12#1:20
|
||||
*S KotlinDebug
|
||||
*F
|
||||
+ 1 kt47168.kt
|
||||
Kt47168Kt
|
||||
*L
|
||||
17#1:20
|
||||
*E
|
||||
} )
|
||||
@@ -1,4 +1,7 @@
|
||||
// !OPT_IN: kotlin.contracts.ExperimentalContracts
|
||||
|
||||
// JVM_ABI_K1_K2_DIFF: KT-62464
|
||||
|
||||
import kotlin.contracts.*
|
||||
|
||||
inline fun foo(x: () -> String, y: () -> String): String {
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
MODULE main
|
||||
CLASS Kt47300Kt.class
|
||||
PACKAGE METADATA
|
||||
FUNCTION fold(LContent;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||
Property: class.metadata.function.valueParameters
|
||||
K1
|
||||
(onContent: kotlin/Function1<@kotlin/ParameterName(name = "value") T#1, T#0>, onException: kotlin/Function1<@kotlin/ParameterName(name = "exception") java/lang/Exception /* = kotlin/Exception^ */, T#0>)
|
||||
K2
|
||||
(onContent: kotlin/Function1<@kotlin/ParameterName(name = "value") T#1, T#0>, onException: kotlin/Function1<@kotlin/ParameterName(name = "exception") java/lang/Exception /* = @kotlin/ParameterName(name = "exception") kotlin/Exception^ */, T#0>)
|
||||
FUNCTION getOrElse(LContent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||
Property: class.metadata.function.valueParameters
|
||||
K1
|
||||
(onException: kotlin/Function1<@kotlin/ParameterName(name = "exception") java/lang/Exception /* = kotlin/Exception^ */, T#0>)
|
||||
K2
|
||||
(onException: kotlin/Function1<@kotlin/ParameterName(name = "exception") java/lang/Exception /* = @kotlin/ParameterName(name = "exception") kotlin/Exception^ */, T#0>)
|
||||
Annotation: class.invisibleAnnotations
|
||||
K1
|
||||
@Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP
|
||||
kt47300.kt
|
||||
Kotlin
|
||||
*S Kotlin
|
||||
*F
|
||||
+ 1 kt47300.kt
|
||||
Kt47300Kt
|
||||
*L
|
||||
1#1,40:1
|
||||
25#1,5:41
|
||||
18#1,12:46
|
||||
*S KotlinDebug
|
||||
*F
|
||||
+ 1 kt47300.kt
|
||||
Kt47300Kt
|
||||
*L
|
||||
18#1:41,5
|
||||
35#1:46,12
|
||||
*E
|
||||
} )
|
||||
K2
|
||||
@Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP
|
||||
kt47300.kt
|
||||
Kotlin
|
||||
*S Kotlin
|
||||
*F
|
||||
+ 1 kt47300.kt
|
||||
Kt47300Kt
|
||||
*L
|
||||
1#1,40:1
|
||||
29#1:41
|
||||
18#1:42
|
||||
29#1:43
|
||||
*S KotlinDebug
|
||||
*F
|
||||
+ 1 kt47300.kt
|
||||
Kt47300Kt
|
||||
*L
|
||||
18#1:41
|
||||
35#1:42
|
||||
35#1:43
|
||||
*E
|
||||
} )
|
||||
@@ -1,6 +1,8 @@
|
||||
// !OPT_IN: kotlin.contracts.ExperimentalContracts
|
||||
// WITH_STDLIB
|
||||
|
||||
// JVM_ABI_K1_K2_DIFF: KT-62464, KT-63971
|
||||
|
||||
import kotlin.contracts.ExperimentalContracts
|
||||
import kotlin.contracts.InvocationKind
|
||||
import kotlin.contracts.contract
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
MODULE main
|
||||
CLASS A.class
|
||||
CLASS METADATA
|
||||
PROPERTY getValue()Ljava/util/ArrayList;
|
||||
Property: class.metadata.property.returnType
|
||||
K1
|
||||
java/util/ArrayList<kotlin/String> /* = kotlin/collections/ArrayList^<kotlin/String> */
|
||||
K2
|
||||
java/util/ArrayList<kotlin/String>
|
||||
@@ -1,6 +1,8 @@
|
||||
// !OPT_IN: kotlin.contracts.ExperimentalContracts
|
||||
// WITH_STDLIB
|
||||
|
||||
// JVM_ABI_K1_K2_DIFF: KT-63864
|
||||
|
||||
import kotlin.contracts.*
|
||||
|
||||
class A {
|
||||
|
||||
Reference in New Issue
Block a user