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