Files
kotlin-fork/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/nullAsNothing.fir.kt
T
2022-11-22 15:46:19 +00:00

9 lines
174 B
Kotlin
Vendored

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