Files
kotlin-fork/js/js.translator/testData/lineNumbers/complexExpressionAsDefaultArgument.kt
T
Alexey Andreev b70c52e41f Fix JS source maps for optional arguments
Also, when function has expression body, use expression instead
of function declaration to mark return statement.
2017-06-07 11:13:46 +03:00

14 lines
204 B
Kotlin
Vendored

fun foo(
a: Int =
when (baz()) {
1 -> bar();
else -> 0
}
): Int =
a + 1
fun baz() = 1
fun bar() = 2
// LINES: 2 3 4 4 5 2 8 10 12