[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
@@ -18,7 +18,7 @@ public class Inv<T> {
|
||||
|
||||
fun test(inv: Inv<String>) {
|
||||
val m: ((String) -> String) -> Inv<String> = <!INITIALIZER_TYPE_MISMATCH!>inv::<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>map<!><!>
|
||||
take(inv::<!UNRESOLVED_REFERENCE!>map<!>)
|
||||
take(inv::<!INAPPLICABLE_CANDIDATE!>map<!>)
|
||||
}
|
||||
|
||||
fun take(f: ((String) -> String) -> Inv<String>) {}
|
||||
|
||||
Reference in New Issue
Block a user