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

9 lines
154 B
Kotlin
Vendored

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