[FIR] Report INAPPLICABLE_CANDIDATE or more specific diagnostic for callable references
... instead of just UNRESOLVED_REFERENCE when something went wrong during resolution. #KT-59401 related
This commit is contained in:
committed by
Space Team
parent
6b7eeec181
commit
d91000e39c
Vendored
+1
-1
@@ -8,5 +8,5 @@ fun main() {
|
||||
::<!UNRESOLVED_REFERENCE!>A<!>
|
||||
::<!CREATING_AN_INSTANCE_OF_ABSTRACT_CLASS!>B<!>
|
||||
::<!CALLABLE_REFERENCE_TO_ANNOTATION_CONSTRUCTOR!>C<!> // KT-3465
|
||||
::<!UNRESOLVED_REFERENCE!>D<!>
|
||||
::<!INVISIBLE_REFERENCE!>D<!>
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -25,7 +25,7 @@ class A {
|
||||
|
||||
expectFunction0Unit(::foo)
|
||||
expectFunction0String(::foo)
|
||||
expectFunction1Unit(::<!UNRESOLVED_REFERENCE!>foo<!>)
|
||||
expectFunction1String(::<!UNRESOLVED_REFERENCE!>foo<!>)
|
||||
expectFunction1Unit(::<!INAPPLICABLE_CANDIDATE!>foo<!>)
|
||||
expectFunction1String(::<!INAPPLICABLE_CANDIDATE!>foo<!>)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user