[FIR] Report NONE_APPLICABLE on callable references with multiple failed candidates
This commit is contained in:
committed by
Space Team
parent
6d2ab92d91
commit
d54068b8ab
+1
-1
@@ -7,4 +7,4 @@ fun foo(s: String) {}
|
||||
|
||||
val x1 = ofType<() -> Unit>(::foo)
|
||||
val x2 = ofType<(String) -> Unit>(::foo)
|
||||
val x3 = ofType<(Int) -> Unit>(::<!UNRESOLVED_REFERENCE!>foo<!>)
|
||||
val x3 = ofType<(Int) -> Unit>(::<!NONE_APPLICABLE!>foo<!>)
|
||||
|
||||
+1
-1
@@ -8,4 +8,4 @@ fun foo(s: String) {}
|
||||
|
||||
val x1 = apply(1, ::foo)
|
||||
val x2 = apply("hello", ::foo)
|
||||
val x3 = apply(true, ::<!UNRESOLVED_REFERENCE!>foo<!>)
|
||||
val x3 = apply(true, ::<!NONE_APPLICABLE!>foo<!>)
|
||||
|
||||
Reference in New Issue
Block a user