[FIR] Change priority of K2_VISIBILITY_ERROR CandidateApplicability
In K1 analogue of `K2_VISIBILITY_ERROR` is `K1_RUNTIME_ERROR`, so
candidates with `K2_VISIBILITY_ERROR` should win over innaplicable
candidates with `INAPPLICABLE`, `INAPPLICABLE_ARGUMENTS_MAPPING_ERROR`
or `INAPPLICABLE_WRONG_RECEIVER` applicability
This is needed to allow resolution to invisible symbols (and later
suppress error with `@Suppress("INVISIBLE_SYMBOL", "INVISIBLE_REFERENCE")`
^KT-55026 Fixed
^KT-55234
This commit is contained in:
committed by
Space Team
parent
6c6525ecde
commit
f3da26946b
@@ -14,7 +14,7 @@ fun x(f : Foo) {
|
||||
|
||||
f.<!FUNCTION_EXPECTED!>a<!>()
|
||||
<!UNRESOLVED_REFERENCE!>c<!>()
|
||||
<!INVISIBLE_REFERENCE!>R<!>()
|
||||
<!UNRESOLVED_REFERENCE!>R<!>()
|
||||
}
|
||||
|
||||
object R {}
|
||||
|
||||
Reference in New Issue
Block a user