Remove check in visibilities that allowed access to privates of outer packages

It doesn't work for a while now in imports and is planned to be dropped with upcoming changes to private
This commit is contained in:
Pavel V. Talanov
2015-05-13 17:15:57 +03:00
parent be66ee7015
commit 7585cbfe22
7 changed files with 51 additions and 17 deletions
@@ -0,0 +1,25 @@
// FILE: a.kt
package outer
private fun a() {}
private class B
// FILE: b.kt
package outer.p1
import outer.<!INVISIBLE_REFERENCE!>a<!>
fun use() {
<!INVISIBLE_MEMBER!>a<!>()
outer.<!INVISIBLE_MEMBER!>B<!>()
}
// FILE: c.kt
package outer.p1.p2
import outer.<!INVISIBLE_REFERENCE!>a<!>
fun use() {
<!INVISIBLE_MEMBER!>a<!>()
outer.<!INVISIBLE_MEMBER!>B<!>()
}