Files
kotlin-fork/js/js.translator/testData/lineNumbers/catch.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

22 lines
339 B
Kotlin
Vendored

fun box() {
try {
println("foo")
}
catch (e: RuntimeException) {
println("bar")
}
catch (e: Exception) {
println("baz")
}
}
fun bar() {
try {
println("foo")
}
catch (e: dynamic) {
println("bar")
}
}
// LINES: 1 11 3 3 5 5 6 6 8 8 9 9 2 2 * 13 20 15 15 18 18