mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
20 lines
340 B
Kotlin
20 lines
340 B
Kotlin
// !DIAGNOSTICS: -UNUSED_EXPRESSION
|
|
import kotlin.reflect.KFunction0
|
|
|
|
class A {
|
|
class Nested
|
|
}
|
|
|
|
fun A.main() {
|
|
::<!NESTED_CLASS_SHOULD_BE_QUALIFIED!>Nested<!>
|
|
val y = A::Nested
|
|
|
|
y : KFunction0<A.Nested>
|
|
}
|
|
|
|
fun Int.main() {
|
|
::<!UNRESOLVED_REFERENCE!>Nested<!>
|
|
val y = A::Nested
|
|
|
|
y : KFunction0<A.Nested>
|
|
} |