Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/function/innerConstructorFromTopLevel.fir.kt
T
2020-01-23 12:32:39 +03:00

15 lines
240 B
Kotlin
Vendored

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