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