Files
kotlin-fork/compiler/testData/lineNumber/custom/when.kt
T
Alexander Udalov 9cb19d17b0 Don't test line numbers on *Package classes
Package classes in line number tests only contain "1" as the first line number
of a single function, so there's no point in testing it. The test was failing
due to the latest changes in the order of generation of classfiles (first $src,
then facade)
2013-08-26 15:59:38 +04:00

16 lines
237 B
Kotlin

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)
}
}
// 3 4 5 9 10 11 8