JS: fix generation of source map for inline lambda with ignored result
See KT-21309
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user