Files
kotlin-fork/js/js.translator/testData/lineNumbers/catch.kt
T
Alexey Andreev ca63717124 Multiple fixes of JS source maps
- elvis expression with complex RHS
- destructuring declarations
- decomposition of `var` statement (for example, in case of
  inline destructuring functions)
- `is` LHS &&/|| inline fun RHS
- argument assignment to temporary var on inline call site
- assignment of `next()` result to temporary var in `for` expression
- rethrow statement in exception handler
2017-07-06 10:20:49 +03:00

22 lines
334 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: 11 3 3 5 5 6 6 8 8 9 9 2 2 * 20 15 15 18 18