10 lines
160 B
Kotlin
Vendored
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>() }
|
|
}
|