Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/function/constructorFromExtension.kt
T

16 lines
203 B
Kotlin
Vendored

// FIR_IDENTICAL
// !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)
}