Make "localClassCaptureExtensionReceiver" test more robust and mute it for JS IR BE
This commit is contained in:
+12
-2
@@ -1,15 +1,25 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
class Outer {
|
||||
val foo = "Foo"
|
||||
|
||||
fun String.id(): String {
|
||||
class Local(unused: Long) {
|
||||
fun result() = this@id
|
||||
fun outer() = this@Outer
|
||||
}
|
||||
|
||||
return Local(42L).result()
|
||||
val l = Local(42L)
|
||||
return l.result() + l.outer().foo
|
||||
}
|
||||
|
||||
fun result(): String = "OK".id()
|
||||
}
|
||||
|
||||
fun box() = Outer().result()
|
||||
fun box(): String {
|
||||
val r = Outer().result()
|
||||
|
||||
if (r != "OKFoo") return "Fail: $r"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user