If all candidates are invisible then don't report ambiguity
#KT-10045 Fixed
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
class A {
|
||||
private fun foo(i: Int) {}
|
||||
private fun foo(s: String) {}
|
||||
}
|
||||
|
||||
fun test(a: A) {
|
||||
a.<!INVISIBLE_MEMBER!>foo<!>(3)
|
||||
a.<!NONE_APPLICABLE!>foo<!>()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user