Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/elvis.kt
T
2014-10-01 18:52:52 +04:00

11 lines
169 B
Kotlin

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