Add additional visibility check for synthetic extensions

Use extension receiver as dispatch one, because it is effectively dispatch
(after some desugaring)
This commit is contained in:
Denis Zharkov
2016-03-31 12:26:14 +03:00
parent b5c9523e4b
commit bc1b34a989
8 changed files with 188 additions and 2 deletions
@@ -12,7 +12,7 @@ fun foo(javaClass: JavaClass) {
class X : JavaClass() {
fun foo(other: JavaClass) {
doSomething { bar() }
other.doSomething { bar() } // currently not flagged as error - see KT-8654
other.<!INVISIBLE_MEMBER!>doSomething<!> { bar() }
}
}