Files
kotlin/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/Elvis.fir.kt
2021-04-22 13:10:54 +03:00

10 lines
175 B
Kotlin
Vendored

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