22 lines
386 B
Kotlin
Vendored
22 lines
386 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !CHECK_TYPE
|
|
// !DIAGNOSTICS: -UNUSED_EXPRESSION
|
|
import kotlin.reflect.KFunction0
|
|
|
|
class A {
|
|
class Nested
|
|
}
|
|
|
|
fun A.main() {
|
|
::<!UNRESOLVED_REFERENCE!>Nested<!>
|
|
val y = A::Nested
|
|
|
|
checkSubtype<KFunction0<A.Nested>>(y)
|
|
}
|
|
|
|
fun Int.main() {
|
|
::<!UNRESOLVED_REFERENCE!>Nested<!>
|
|
val y = A::Nested
|
|
|
|
checkSubtype<KFunction0<A.Nested>>(y)
|
|
} |