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
This commit is contained in:
Alexander Udalov
2013-01-14 19:46:38 +04:00
parent 85bd41dfa5
commit c4b5577555
5 changed files with 23 additions and 6 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
fun <T> foo() {
fun <T> foo() where class object T : Any {
T.<caret>toString()
}