[FIR] Additional errors to distinguish resolution to classifier cases
When a call is resolved to a classifier, only a single error message was being used for multiple cases. This lead to confusion as the default message may not be applicable to a given error case. Added additional errors and messages to distinguish between these error cases. #KT-57251 Fixed
This commit is contained in:
@@ -31,7 +31,7 @@ class Owner {
|
||||
fun test() {
|
||||
val o = Owner()
|
||||
o.foo()
|
||||
val err = Owner.<!RESOLUTION_TO_CLASSIFIER!>Inner<!>()
|
||||
val err = Owner.<!INNER_CLASS_CONSTRUCTOR_NO_RECEIVER!>Inner<!>()
|
||||
err.<!UNRESOLVED_REFERENCE!>baz<!>()
|
||||
val i = o.Inner()
|
||||
i.gau()
|
||||
|
||||
Vendored
+2
-2
@@ -9,6 +9,6 @@ class Outer<T> {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo.Outer<Int>.<!RESOLUTION_TO_CLASSIFIER!>Inner<!>(42)
|
||||
foo.Outer<Int>.<!RESOLUTION_TO_CLASSIFIER!>Inner<!>(42)::<!UNRESOLVED_REFERENCE!>method<!>
|
||||
foo.Outer<Int>.<!INNER_CLASS_CONSTRUCTOR_NO_RECEIVER!>Inner<!>(42)
|
||||
foo.Outer<Int>.<!INNER_CLASS_CONSTRUCTOR_NO_RECEIVER!>Inner<!>(42)::<!UNRESOLVED_REFERENCE!>method<!>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user