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:
@@ -10,7 +10,7 @@ class Test {
|
||||
}
|
||||
|
||||
fun more(): InnerClass {
|
||||
val b = <!UNRESOLVED_REFERENCE!>InnerClass<!>()
|
||||
val b = <!RESOLUTION_TO_CLASSIFIER!>InnerClass<!>()
|
||||
|
||||
val <!UNUSED_VARIABLE!>testVal<!> = <!UNRESOLVED_REFERENCE!>inClass<!>
|
||||
<!UNRESOLVED_REFERENCE!>foo<!>()
|
||||
@@ -23,4 +23,4 @@ class Test {
|
||||
fun foo() {}
|
||||
|
||||
open inner class InnerClass
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user