Filter out equivalent calls before reporting "none applicable"
If a module is configured in such a way that the same function appears multiple times via different dependencies, it's not helpful to report "none of the following functions can be called", listing the same function multiple times
This commit is contained in:
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
// MODULE: m1
|
||||
// FILE: a.kt
|
||||
package p
|
||||
|
||||
fun f(s: String, t: String) = s + t
|
||||
|
||||
// MODULE: m2
|
||||
// FILE: b.kt
|
||||
package p
|
||||
|
||||
fun f(s: String, t: String) = t + s
|
||||
|
||||
// MODULE: m3(m1, m2)
|
||||
// FILE: c.kt
|
||||
import p.f
|
||||
|
||||
fun test() {
|
||||
// There should be no "none applicable" error here
|
||||
f(
|
||||
<!SYNTAX!><!>}
|
||||
Reference in New Issue
Block a user