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