Files
kotlin-fork/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/nullAsNothing.fir.kt
T

10 lines
160 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
// !CHECK_TYPE
val x get() = null
val y get() = null!!
fun foo() {
x checkType { _<Nothing?>() }
y checkType { _<Nothing>() }
}