Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/callableReference/function/constructorFromTopLevel.kt
T
2015-04-29 16:33:24 +02:00

12 lines
126 B
Kotlin

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