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