Files
kotlin-fork/js/js.translator/testData/lineNumbers/complexExpressionAsDefaultArgument.kt
Alexander Korepanov 6df0e0c847 [JS FIR] Enable FirJsLineNumberTests for FIR
^KT-64426 Fixed
2024-01-10 19:02:15 +00:00

15 lines
238 B
Kotlin
Vendored

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