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:
+1
-1
@@ -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() }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user