3d8d92c7d3
- test data files renamed from *.jet to *.kt
19 lines
312 B
Kotlin
19 lines
312 B
Kotlin
fun bar(x: Int): Int = x + 1
|
|
|
|
fun foo() {
|
|
val x: Int? = null
|
|
|
|
if (x != null) {
|
|
when (x) {
|
|
0 -> bar(x)
|
|
else -> {}
|
|
}
|
|
}
|
|
|
|
when (x) {
|
|
0 -> { if (<!SENSELESS_COMPARISON!>x == null<!>) return }
|
|
else -> { if (x == null) return }
|
|
}
|
|
bar(x)
|
|
}
|