Allow to import private members if they are in the same file

#KT-7724 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-04-04 03:45:27 +03:00
parent f518e8ebb8
commit 9fdd5fe5e8
14 changed files with 380 additions and 11 deletions
@@ -0,0 +1,40 @@
package test
import test.C.E1
import test.A.B.*
import test.Obj.CInObj.Tt
import test.Obj.foo
private enum class C {
E1
}
class A {
private class B {
object C
class D
}
fun test() {
C
D()
}
}
private object Obj {
private class CInObj {
class Tt
}
fun foo() {
Tt()
}
}
fun box(): String {
E1
A().test()
foo()
return "OK"
}