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

14 lines
214 B
Kotlin
Vendored

var log = ""
fun box(a: Any) {
if (a is String && foo()) {
log += "OK"
}
}
inline fun foo(): Boolean {
log += "foo"
return true
}
// LINES: 7 4 4 4 10 10 4 11 4 5 5 12 10 10 11 11 * 1 * 1