[JVM+IR] Migrate/improve receiver mangling test suite
This commit is contained in:
committed by
max-kammerer
parent
5967e8295e
commit
edd3b457d4
@@ -1,3 +0,0 @@
|
||||
class Foo {
|
||||
inner class Bar
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
public final class Foo$Bar : java/lang/Object {
|
||||
final Foo this$0
|
||||
|
||||
public void <init>(Foo this$0)
|
||||
}
|
||||
|
||||
public final class Foo : java/lang/Object {
|
||||
public void <init>()
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
fun String.foo(a: Int) {}
|
||||
@@ -1,3 +0,0 @@
|
||||
public final class SimpleKt : java/lang/Object {
|
||||
public final static void foo(java.lang.String $this$foo, int a)
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
|
||||
// FILE: test.kt
|
||||
class Foo {
|
||||
inner class Bar {
|
||||
}
|
||||
}
|
||||
|
||||
fun box() {
|
||||
val x = Foo()
|
||||
x.Bar()
|
||||
}
|
||||
|
||||
// LOCAL VARIABLES
|
||||
// test.kt:10 box:
|
||||
// test.kt:4 <init>:
|
||||
// test.kt:10 box:
|
||||
// test.kt:11 box: x:Foo=Foo
|
||||
// test.kt:5 <init>:
|
||||
// test.kt:11 box: x:Foo=Foo
|
||||
// test.kt:12 box: x:Foo=Foo
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
|
||||
|
||||
// FILE: test.kt
|
||||
fun blockFun(blockArg: String.() -> Unit) =
|
||||
"OK".blockArg()
|
||||
|
||||
fun box() {
|
||||
blockFun {
|
||||
println(this)
|
||||
}
|
||||
}
|
||||
|
||||
// LOCAL VARIABLES
|
||||
// test.kt:8 box:
|
||||
// test.kt:5 blockFun: blockArg:kotlin.jvm.functions.Function1=TestKt$box$1
|
||||
// test.kt:9 invoke: $this$blockFun:java.lang.String="OK":java.lang.String
|
||||
// test.kt:10 invoke: $this$blockFun:java.lang.String="OK":java.lang.String
|
||||
// test.kt:5 blockFun: blockArg:kotlin.jvm.functions.Function1=TestKt$box$1
|
||||
// test.kt:11 box:
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
|
||||
|
||||
// FILE: test.kt
|
||||
fun blockFun(blockArg: String.() -> Unit) =
|
||||
"OK".blockArg()
|
||||
|
||||
fun box() {
|
||||
blockFun {
|
||||
println(this)
|
||||
}
|
||||
}
|
||||
|
||||
// LOCAL VARIABLES
|
||||
// test.kt:8 box:
|
||||
// test.kt:5 blockFun: blockArg:kotlin.jvm.functions.Function1=TestKt$box$1
|
||||
// test.kt:9 invoke: $this$blockFun:java.lang.String="OK":java.lang.String
|
||||
// test.kt:10 invoke: $this$blockFun:java.lang.String="OK":java.lang.String
|
||||
// test.kt:5 blockFun: blockArg:kotlin.jvm.functions.Function1=TestKt$box$1
|
||||
// test.kt:11 box:
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
|
||||
|
||||
// FILE: test.kt
|
||||
fun blockFun(blockArg: String.() -> Unit) =
|
||||
"OK".blockArg()
|
||||
|
||||
fun box() {
|
||||
blockFun label@{
|
||||
println(this)
|
||||
}
|
||||
}
|
||||
|
||||
// LOCAL VARIABLES
|
||||
// test.kt:8 box:
|
||||
// test.kt:5 blockFun: blockArg:kotlin.jvm.functions.Function1=TestKt$box$1
|
||||
// test.kt:9 invoke: $this$label:java.lang.String="OK":java.lang.String
|
||||
// test.kt:10 invoke: $this$label:java.lang.String="OK":java.lang.String
|
||||
// test.kt:5 blockFun: blockArg:kotlin.jvm.functions.Function1=TestKt$box$1
|
||||
// test.kt:11 box:
|
||||
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
|
||||
|
||||
// FILE: test.kt
|
||||
fun blockFun(blockArg: String.() -> Unit) =
|
||||
"OK".blockArg()
|
||||
|
||||
fun box() {
|
||||
blockFun ({
|
||||
println(this)
|
||||
})
|
||||
}
|
||||
|
||||
// LOCAL VARIABLES
|
||||
// test.kt:8 box:
|
||||
// test.kt:5 blockFun: blockArg:kotlin.jvm.functions.Function1=TestKt$box$1
|
||||
// test.kt:9 invoke: $this$blockFun:java.lang.String="OK":java.lang.String
|
||||
// test.kt:10 invoke: $this$blockFun:java.lang.String="OK":java.lang.String
|
||||
// test.kt:5 blockFun: blockArg:kotlin.jvm.functions.Function1=TestKt$box$1
|
||||
// test.kt:11 box:
|
||||
Reference in New Issue
Block a user