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

15 lines
177 B
Kotlin
Vendored

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