mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
14 lines
160 B
Kotlin
Vendored
14 lines
160 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
|
|
import kotlin.reflect.KFunction0
|
|
|
|
class A {
|
|
class Nested
|
|
}
|
|
|
|
fun main() {
|
|
val x = A::Nested
|
|
|
|
checkSubtype<KFunction0<A.Nested>>(x)
|
|
}
|