Allowed accessing private members from same package, but different package fragment instance.

This commit is contained in:
Evgeny Gerashchenko
2015-06-11 18:58:32 +03:00
parent 4461687ae3
commit 0ddfedba49
6 changed files with 41 additions and 0 deletions
@@ -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