Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/nestedConstructorFromClass.kt
T
Alexander Udalov c4b4fa750c Resolve callable reference expressions
#KT-1183 In Progress
2013-04-22 17:59:31 +04:00

30 lines
500 B
Kotlin

class A {
class Nested
fun main() {
val x = ::Nested
val y = A::Nested
x : KFunction0<Nested>
y : KFunction0<Nested>
}
class object {
fun main() {
::<!UNRESOLVED_REFERENCE!>Nested<!> // KT-3261
val y = A::Nested
y : KFunction0<A.Nested>
}
}
}
class B {
fun main() {
::<!UNRESOLVED_REFERENCE!>Nested<!>
val y = A::Nested
y : KFunction0<A.Nested>
}
}