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
@@ -4,15 +4,15 @@ package k
import JavaClass
fun foo(javaClass: JavaClass) {
javaClass.<!INVISIBLE_MEMBER!>doSomething<!> <!TYPE_MISMATCH!>{
javaClass.<!INVISIBLE_MEMBER!>doSomething<!> {
bar()
}<!>
}
}
class X : JavaClass() {
fun foo(other: JavaClass) {
doSomething { bar() }
other.<!INVISIBLE_MEMBER!>doSomething<!> <!TYPE_MISMATCH!>{ bar() }<!>
other.<!INVISIBLE_MEMBER!>doSomething<!> { bar() }
}
}