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
+21
View File
@@ -0,0 +1,21 @@
MODULE main
CLASS Adder.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
K1
---
K2
get$$result()I
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
+2
View File
@@ -1,3 +1,5 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63961, KT-63963
var x = 0
x++
x++
@@ -0,0 +1,37 @@
MODULE main
CLASS script/long/name/inside/packag/ClassLiteralInsideFunction.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
PROPERTY getRv()Lscript/long/name/inside/packag/ClassLiteralInsideFunction$I;
Property: class.metadata.property.returnType
K1
script/long/name/inside/packag/ClassLiteralInsideFunction.I
K2
script/long/name/inside/packag/I
CLASS script/long/name/inside/packag/ClassLiteralInsideFunction$f$1.class
CLASS METADATA
Property: class.metadata.superTypes
K1
[script/long/name/inside/packag/ClassLiteralInsideFunction.I]
K2
[script/long/name/inside/packag/I]
CLASS script/long/name/inside/packag/ClassLiteralInsideFunction$f$1$g$1.class
CLASS METADATA
Property: class.metadata.superTypes
K1
[script/long/name/inside/packag/ClassLiteralInsideFunction.I]
K2
[script/long/name/inside/packag/I]
@@ -1,3 +1,4 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963, KT-63964
package script.long.name.inside.packag
@@ -0,0 +1,33 @@
MODULE main
CLASS DestructuringDeclaration.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
K1
---
K2
abc
K1
---
K2
def
K1
getAbc()I
K2
---
K1
getDef()I
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
@@ -1,4 +1,5 @@
// DUMP_IR
// JVM_ABI_K1_K2_DIFF: KT-63960,, KT-63967
val (abc, def) = A()
@@ -0,0 +1,29 @@
MODULE main
CLASS DestructuringDeclarationUnderscore.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
K1
---
K2
<unused var>
K1
---
K2
b
K1
getB()I
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
@@ -1,3 +1,4 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63968, KT-63967, KT-63963
val (_, b, _) = A()
+17
View File
@@ -0,0 +1,17 @@
MODULE main
CLASS Empty.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
+2
View File
@@ -1 +1,3 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, T-63963
// expected: rv: <nofield>
+21
View File
@@ -0,0 +1,21 @@
MODULE main
CLASS HelloWorld.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
K1
---
K2
$$result
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
+2
View File
@@ -1,2 +1,4 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63969, KT-63963
// expected: rv: <nofield>
System.out!!.println("hello world")
+17
View File
@@ -0,0 +1,17 @@
MODULE main
CLASS Inline.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
+1
View File
@@ -1,3 +1,4 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
// expected: rv: 2
inline fun foo(l: (Int) -> Int ): Int {
+30
View File
@@ -0,0 +1,30 @@
MODULE main
CLASS Kt20707.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
FUNCTION applySomething(LKt20707$Build;)Ljava/lang/String;
Property: class.metadata.function.valueParameters
K1
(build: Kt20707.Build)
K2
(build: Build)
CLASS Kt20707$Build.class
CLASS METADATA
Property: class.metadata.superTypes
K1
[kotlin/Enum<Kt20707.Build>]
K2
[kotlin/Enum<Build>]
+1
View File
@@ -1,3 +1,4 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963, KT-63964
enum class Build { Debug, Release }
+33
View File
@@ -0,0 +1,33 @@
MODULE main
CLASS Kt22029.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
K1
---
K2
fst
K1
getFst()I
K2
---
K1
getSnd()I
K2
---
K1
---
K2
snd
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
+1
View File
@@ -1,3 +1,4 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63967, KT-63963
data class Pair(val first: Int, val second: Int)
@@ -0,0 +1,17 @@
MODULE main
CLASS LocalDelegatedProperty.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
@@ -1,3 +1,4 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
import kotlin.reflect.KProperty
@@ -0,0 +1,17 @@
MODULE main
CLASS LocalDelegatedPropertyInLambda.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
@@ -1,4 +1,5 @@
// WITH_REFLECT
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
import kotlin.reflect.KProperty
@@ -0,0 +1,17 @@
MODULE main
CLASS LocalDelegatedPropertyNoExplicitType.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
@@ -1,3 +1,4 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
import kotlin.reflect.KProperty
@@ -0,0 +1,17 @@
MODULE main
CLASS script/LocalFunction.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
+2
View File
@@ -1,3 +1,5 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
package script
fun f(j: Int): Int {
@@ -0,0 +1,17 @@
MODULE main
CLASS OuterCapture.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
+2
View File
@@ -1,3 +1,5 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
// expected: rv: 2
fun foo(l: (Int) -> Int ): Int {
return l(1)
+17
View File
@@ -0,0 +1,17 @@
MODULE main
CLASS Parameter.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
+2
View File
@@ -1,3 +1,5 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
// expected: rv: sky color is blue
// param: sky blue
@@ -0,0 +1,17 @@
MODULE main
CLASS ParameterArray.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
+2
View File
@@ -1,3 +1,5 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
// param: three little words
// expected: rv: little
@@ -0,0 +1,17 @@
MODULE main
CLASS ParameterClosure.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
+1
View File
@@ -1,3 +1,4 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
// param: 10
@@ -0,0 +1,17 @@
MODULE main
CLASS ParameterLong.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
+2
View File
@@ -1,3 +1,5 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
// expected: rv: 19
// param: 17 2
@@ -0,0 +1,29 @@
MODULE main
CLASS ClassCapturesExtensionIndirect.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
FUNCTION ext(LClassCapturesExtensionIndirect$A;)V
Property: class.metadata.function.receiverParameterType
K1
ClassCapturesExtensionIndirect.A
K2
A
PROPERTY getB()LClassCapturesExtensionIndirect$B;
Property: class.metadata.property.returnType
K1
ClassCapturesExtensionIndirect.B
K2
B
@@ -1,5 +1,6 @@
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
// IGNORE_BACKEND: JVM
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963, KT-63964
// expected: rv: kotlin.Unit
@@ -0,0 +1,23 @@
MODULE main
CLASS ClassCapturesExtensionIndirect2x.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
FUNCTION ext(LClassCapturesExtensionIndirect2x$A;)V
Property: class.metadata.function.receiverParameterType
K1
ClassCapturesExtensionIndirect2x.A
K2
A
@@ -1,5 +1,6 @@
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
// IGNORE_BACKEND: JVM
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963, KT-63964
// expected: rv: kotlin.Unit
@@ -0,0 +1,17 @@
MODULE main
CLASS ClassCapturesFunction.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
// expected: rv: 42
@@ -0,0 +1,17 @@
MODULE main
CLASS ClassCapturesProperty.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
// expected: rv: abc
@@ -0,0 +1,17 @@
MODULE main
CLASS ClassCapturesPropertyInStringTemplate.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
@@ -1,5 +1,6 @@
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
// IGNORE_BACKEND: JVM
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
// expected: rv: 42
@@ -0,0 +1,17 @@
MODULE main
CLASS ClassCapturesPropertyIndirect.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
@@ -1,5 +1,6 @@
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
// IGNORE_BACKEND: JVM
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
// expected: rv: 42
@@ -0,0 +1,17 @@
MODULE main
CLASS ClassCapturesPropertyIndirect2x.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
@@ -1,5 +1,6 @@
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
// IGNORE_BACKEND: JVM
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
// expected: rv: 42
@@ -0,0 +1,17 @@
MODULE main
CLASS NestedInnerClassCapturesProperty.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
// expected: rv: abc!
@@ -0,0 +1,17 @@
MODULE main
CLASS SecondLevelFunction.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
@@ -1,3 +1,5 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
var x: Int = 0
if (true) {
@@ -0,0 +1,17 @@
MODULE main
CLASS SecondLevelFunctionClosure.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
@@ -1,3 +1,5 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
val z = 30
var x: Int = 0
@@ -0,0 +1,21 @@
MODULE main
CLASS SecondLevelVal.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
K1
---
K2
$$result
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
+2
View File
@@ -1,3 +1,5 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963, KT-63969
if (true) {
val archenemy = "Jim Moriarty"
}
@@ -0,0 +1,17 @@
MODULE main
CLASS SimpleClass.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
+1
View File
@@ -1,3 +1,4 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
class SimpleClass(val s: String) {
fun foo() = s
+17
View File
@@ -0,0 +1,17 @@
MODULE main
CLASS String.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
+2
View File
@@ -1,3 +1,5 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
val rv = "O" + "K"
// expected: rv: OK
@@ -0,0 +1,17 @@
MODULE main
CLASS TopLevelFunction.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
+2
View File
@@ -1,3 +1,5 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
// expected: rv: 3628800
fun factorial(n: Int): Int {
@@ -0,0 +1,17 @@
MODULE main
CLASS TopLevelFunctionClosure.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
@@ -1,3 +1,5 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
val x = 12
fun foo(y: Int) = x + y
@@ -0,0 +1,17 @@
MODULE main
CLASS TopLevelLocalDelegatedProperty.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
@@ -1,3 +1,4 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
import kotlin.reflect.KProperty
@@ -0,0 +1,17 @@
MODULE main
CLASS TopLevelPropertiesWithGetSet.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
@@ -1,3 +1,4 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
var log = "begin"
fun append(msg: String) {
@@ -0,0 +1,17 @@
MODULE main
CLASS TopLevelProperty.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
+2
View File
@@ -1,3 +1,5 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
val x = 12
// expected: x: 12
@@ -0,0 +1,41 @@
MODULE main
CLASS TopLevelPropertyWithProvideDelegate.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
CLASS TopLevelPropertyWithProvideDelegate$Delegate.class
CLASS METADATA
FUNCTION getValue(LTopLevelPropertyWithProvideDelegate$Test;Lkotlin/reflect/KProperty;)Ljava/lang/String;
Property: class.metadata.function.valueParameters
K1
(thisRef: TopLevelPropertyWithProvideDelegate.Test, property: kotlin/reflect/KProperty<*>)
K2
(thisRef: Test, property: kotlin/reflect/KProperty<*>)
CLASS TopLevelPropertyWithProvideDelegate$Provider.class
CLASS METADATA
FUNCTION provideDelegate(LTopLevelPropertyWithProvideDelegate$Test;Lkotlin/reflect/KProperty;)LTopLevelPropertyWithProvideDelegate$Delegate;
Property: class.metadata.function.valueParameters
K1
(thisRef: TopLevelPropertyWithProvideDelegate.Test, property: kotlin/reflect/KProperty<*>)
K2
(thisRef: Test, property: kotlin/reflect/KProperty<*>)
CLASS TopLevelPropertyWithProvideDelegate$Test$Companion.class
CLASS METADATA
PROPERTY getInstance()LTopLevelPropertyWithProvideDelegate$Test;
Property: class.metadata.property.returnType
K1
TopLevelPropertyWithProvideDelegate.Test
K2
Test
@@ -1,3 +1,4 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963, KT-63964
import kotlin.reflect.KProperty
@@ -0,0 +1,21 @@
MODULE main
CLASS TopLevelTypealias.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
K1
Test
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
+1 -1
View File
@@ -1,4 +1,4 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
class SimpleClass(val s: String) {
fun foo() = s
}
@@ -0,0 +1,49 @@
MODULE main
CLASS TwoDestructuringDeclarations.class
CLASS METADATA
K1
<init>([Ljava/lang/String;)V
K2
---
K1
---
K2
a
K1
---
K2
b
K1
---
K2
c
K1
---
K2
d
K1
getA()I
K2
---
K1
getB()I
K2
---
K1
getC()I
K2
---
K1
getD()I
K2
---
Property: class.metadata.superTypes
K1
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
K2
[]
Property: class.metadata.contextReceiverTypes
K1
[]
K2
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
@@ -1,3 +1,5 @@
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963, KT-63961
val (a, b) = A()
val (c, d) = B()