11 lines
163 B
Kotlin
Vendored
11 lines
163 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
|
|
val Any?.meaning: Int
|
|
get() = 42
|
|
|
|
fun test() {
|
|
val f = Any?::meaning
|
|
checkSubtype<Int>(f.get(null))
|
|
checkSubtype<Int>(f.get(""))
|
|
}
|