Added tests for loading private top-level members from compiled code.

This commit is contained in:
Evgeny Gerashchenko
2012-06-19 22:39:34 +04:00
parent f0430969e0
commit e8f15027e9
9 changed files with 48 additions and 0 deletions
@@ -0,0 +1,3 @@
package test
private class PrivateClass {}
@@ -0,0 +1,5 @@
namespace test
private final class test.PrivateClass : jet.Any {
public final /*constructor*/ fun <init>(): test.PrivateClass
}
@@ -0,0 +1,4 @@
package test
private fun topLevelFun() = 0
@@ -0,0 +1,3 @@
namespace test
private final fun topLevelFun(): jet.Int
@@ -0,0 +1,3 @@
package test
private val topLevelVal = 0
@@ -0,0 +1,3 @@
namespace test
private final val topLevelVal: jet.Int
@@ -0,0 +1,4 @@
package test
internal var topLevelVar = 0
private set
@@ -0,0 +1,3 @@
namespace test
internal final var topLevelVar: jet.Int private set