Files
kotlin-fork/compiler/testData/resolve/ClassObjects.jet
T
Alexander Udalov c4b5577555 Do not report NO_CLASS_OBJECT when namespacesAllowed=true
Now with nested classes the expression "A.something" makes sense even when A
doesn't have a class object ("something" could be a nested class)

Also "A" expression now gets a NamespaceType with the scope of all static
nested classes of A

 #KT-1174 In Progress
2013-01-16 23:11:50 +04:00

14 lines
145 B
Plaintext

package Jet86
~A~class A {
class object {
~A.x~val x = 1
}
}
~B~class B() {
~B.x~val x = 12
}
val a = `A`A.`A.x`x
val d = B().`B.x`x