Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/elvisNothingRHS.fir.kt
T

12 lines
154 B
Kotlin
Vendored

class C {
fun foo() {}
}
fun test(a: C?, nn: () -> Nothing?) {
a ?: nn()
a.<!INAPPLICABLE_CANDIDATE!>foo<!>()
a ?: return
a.foo()
}