Files
kotlin-fork/compiler/testData/lineNumber/custom/when.kt
T
Nikolay Krasko 3d9d6e666d Test several line numbers are generated for one instruction
(cherry picked from commit 1ea9280)
2016-10-05 18:49:38 +03:00

15 lines
248 B
Kotlin
Vendored

fun foo(x: Int) {
when {
x == 21 -> foo(x)
x == 42 -> foo(x)
else -> foo(x)
}
val t = when {
x == 21 -> foo(x)
x == 42 -> foo(x)
else -> foo(x)
}
}
// 2 +3 4 5 6 +8 +9 10 11 8 13