Files
kotlin/compiler/testData/diagnostics/tests/callableReference/function/innerConstructorFromTopLevel.fir.kt

15 lines
213 B
Kotlin
Vendored

// !CHECK_TYPE
// !DIAGNOSTICS: -UNUSED_EXPRESSION
import kotlin.reflect.KFunction1
class A {
inner class Inner
}
fun main() {
::Inner
val y = A::Inner
checkSubtype<KFunction1<A, A.Inner>>(y)
}