Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/DoWhile.fir.kt
T

17 lines
297 B
Kotlin
Vendored

fun bar(x: Int): Int = x + 1
fun foo() {
val x: Int? = null
do {
bar(<!ARGUMENT_TYPE_MISMATCH!>x<!>)
} while (x == null)
bar(x)
val y: Int? = null
do {
bar(<!ARGUMENT_TYPE_MISMATCH!>y<!>)
} while (y != null)
bar(<!ARGUMENT_TYPE_MISMATCH!>y<!>)
}