Allowed accessing private members from same package, but different package fragment instance.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val x: Foo = Foo()
|
||||
foo()
|
||||
c
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val x: Foo = Foo()
|
||||
foo()
|
||||
c
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
Cleaning output files:
|
||||
out/production/module/test/TestPackage$bar$*.class
|
||||
out/production/module/test/TestPackage.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/bar.kt
|
||||
End of files
|
||||
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
private class Foo
|
||||
|
||||
private fun foo() {
|
||||
|
||||
}
|
||||
|
||||
private val c = 1
|
||||
Reference in New Issue
Block a user