ca63717124
- 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
22 lines
334 B
Kotlin
Vendored
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 |