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<!>()
}
@@ -0,0 +1,20 @@
package
package outer {
private fun a(): kotlin.Unit
private final class B {
public constructor B()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
package outer.p1 {
internal fun use(): kotlin.Unit
package outer.p1.p2 {
internal fun use(): kotlin.Unit
}
}
}