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
@@ -11,7 +11,7 @@ class Data(var x: A)
class B : A() {
fun baz(a: A, b: B, d: Data) {
a.<!INVISIBLE_MEMBER!>foo<!> <!TYPE_MISMATCH!>{ }<!>
a.<!INVISIBLE_MEMBER!>foo<!> { }
b.foo { }
@@ -26,5 +26,5 @@ class B : A() {
}
fun baz(a: A) {
a.<!INVISIBLE_MEMBER!>foo<!> <!TYPE_MISMATCH!>{ }<!>
a.<!INVISIBLE_MEMBER!>foo<!> { }
}