Added error 'NESTED_CLASS_SHOULD_BE_QUALIFIED'

when nested class is resolved through implicit this
This commit is contained in:
Svetlana Isakova
2014-08-29 15:20:24 +04:00
parent 132c292d32
commit 17c3eeb7bd
8 changed files with 29 additions and 8 deletions
@@ -6,7 +6,7 @@ class A {
}
fun A.main() {
::<!NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE!>Nested<!>
::<!NESTED_CLASS_SHOULD_BE_QUALIFIED!>Nested<!>
val y = A::Nested
y : KFunction0<A.Nested>