Files
kotlin-fork/js/js.translator/testData/lineNumbers/classCapturingLocals.kt
T
2022-11-09 12:35:44 +00:00

19 lines
379 B
Kotlin
Vendored

class A
fun A.foo() {
val x = baz()
class B {
fun bar() {
println(this@foo)
println("A.B.bar: $x")
}
}
println("A.foo: $x")
B().bar()
}
fun baz() = 23
// LINES(JS): 1 * 5 5 5 6 9 7 7 8 8 * 3 13 4 4 11 11 12 12 15 15 15
// LINES(JS_IR): 1 1 3 3 4 11 11 12 12 15 15 15 15 5 3 4 5 * 6 7 7 8 8