21 lines
271 B
Kotlin
Vendored
21 lines
271 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !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)
|
|
}
|
|
}
|