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

13 lines
143 B
Kotlin
Vendored

// FIR_IDENTICAL
// !CHECK_TYPE
import kotlin.reflect.KFunction0
class A
fun main() {
val x = ::A
checkSubtype<KFunction0<A>>(x)
}