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

12 lines
211 B
Kotlin
Vendored

var log = ""
fun box(x: String?) {
log +=
x
?:
try { foo() } finally { log += "finally" }
}
fun foo() = "bar"
// LINES: 8 7 7 4 4 4 5 5 7 7 7 7 * 5 4 5 10 10 10 * 1 * 1