Fix JS source maps for initialization of variables captured by class
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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: 5 5 7 8 * 4 11 12 15
|
||||
@@ -0,0 +1,9 @@
|
||||
class A(val x: Int) {
|
||||
inner class B {
|
||||
fun foo() {
|
||||
println(x)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// LINES: 1 2 4
|
||||
Reference in New Issue
Block a user