Files
kotlin-fork/js/js.translator/testData/lineNumbers/inliningWithLambda.kt
T
Roman Artemev 46b98a1e98 [JS BE] Make sourceMap generation more precise
- Don't produce mapping for closing bracket in case of expressionBody
 - Map Kt*Function declaration into corresponding js fun declaration
 - Update test data & add new test
2019-07-24 18:56:40 +03:00

19 lines
322 B
Kotlin
Vendored

fun box() {
println("1")
foo {
println("x")
}
println("2")
foo {
println("y")
}
println("3")
}
inline fun foo(f: () -> Unit) {
println("before")
f()
println("after")
}
// LINES: 1 11 2 2 14 14 4 4 16 16 6 6 14 14 8 8 16 16 10 10 13 13 13 13 13 17 14 14 15 15 16 16