46b98a1e98
- 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
19 lines
322 B
Kotlin
Vendored
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 |