Files
kotlin-fork/js/js.translator/testData/lineNumbers/inlineArguments.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
165 B
Kotlin
Vendored

var log = ""
fun box() {
foo(bar())
}
inline fun foo(x: Int) {
log += x
log += x
}
fun bar() = 23
// LINES: 5 4 4 8 8 9 9 10 8 8 9 9 12 12 12 * 1 * 1