Files
kotlin/compiler/testData/diagnostics/tests/callableReference/function/nestedConstructorFromTopLevel.kt
2015-05-26 14:27:40 +03:00

14 lines
160 B
Kotlin
Vendored

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