[JVM+IR] Migrate/improve receiver mangling test suite
This commit is contained in:
committed by
max-kammerer
parent
5967e8295e
commit
edd3b457d4
@@ -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