Add diagnostic on calling inner classes constructors without receiver

Otherwise there will be just an unresolved reference that doesn't give
any useful information

 #KT-8959 Fixed
This commit is contained in:
Denis Zharkov
2017-02-28 15:28:20 +03:00
parent 1e0ae04aba
commit a7fc32c8da
17 changed files with 133 additions and 37 deletions
+2 -2
View File
@@ -12,5 +12,5 @@ class C {
fun f() {
<!RESOLUTION_TO_CLASSIFIER!>TestInterface<!>()
C.<!UNRESOLVED_REFERENCE!>I<!>()
}
C.<!RESOLUTION_TO_CLASSIFIER!>I<!>()
}