If all candidates are invisible then don't report ambiguity

#KT-10045 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-06-20 15:07:16 +03:00
parent cd1ae7f0f2
commit 4b3ffd9418
11 changed files with 53 additions and 21 deletions
@@ -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<!>()
}
@@ -0,0 +1,12 @@
package
public fun test(/*0*/ a: A): kotlin.Unit
public final class A {
public constructor A()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
private final fun foo(/*0*/ i: kotlin.Int): kotlin.Unit
private final fun foo(/*0*/ s: kotlin.String): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}