JS: fix generation of source map for inline lambda with ignored result

See KT-21309
This commit is contained in:
Alexey Andreev
2017-11-17 14:50:40 +03:00
parent d2aabe076d
commit 38e50e964a
3 changed files with 38 additions and 2 deletions
@@ -0,0 +1,27 @@
fun foo() {
bar {
try {
baz()
}
catch (e: RuntimeException) {
e.toString()
}
}
bar {
when (boo()) {
"boo" -> baz()
else -> "111"
}
}
}
inline fun bar(x: () -> String): String {
return x()
}
fun baz() = "baz"
fun boo() = "boo"
// LINES: 17 4 6 6 7 7 3 3 3 * 13 12 13 13 14 21 20 20 23 23 23 25 25 25