[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
+2
-2
@@ -56,7 +56,7 @@ class Derived : Intermediate() {
|
||||
|
||||
fun bar() = a // Non-reference
|
||||
|
||||
fun baz() = this::<!UNRESOLVED_REFERENCE!>b<!> // Non-protected
|
||||
fun baz() = this::<!INVISIBLE_REFERENCE!>b<!> // Non-protected
|
||||
}
|
||||
|
||||
typealias Alias = Intermediate
|
||||
@@ -90,5 +90,5 @@ class DirectlyDerived : BaseJava() {
|
||||
}
|
||||
|
||||
fun test(d: Derived) {
|
||||
d::<!UNRESOLVED_REFERENCE!>a<!> // Field is also invisible
|
||||
d::<!INVISIBLE_REFERENCE!>a<!> // Field is also invisible
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user