Fix JS source maps for initialization of variables captured by class

This commit is contained in:
Alexey Andreev
2017-05-12 18:22:25 +03:00
parent bfc3a9c2af
commit 13795b47fb
5 changed files with 40 additions and 2 deletions
@@ -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