fix access from tests to internal elements in production code in case of circular dependency

Original commit: 5b59fc74bc
This commit is contained in:
Michael Nedzelsky
2015-11-09 15:42:16 +03:00
parent 934a969c2f
commit ba12afbbb9
24 changed files with 258 additions and 7 deletions
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
</content>
<orderEntry type="jdk" jdkName="IDEA_JDK" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="module1" />
<orderEntry type="library" name="KotlinRuntime" level="project" />
</component>
</module>
@@ -0,0 +1,9 @@
package test
fun b() {
}
internal fun funB() {}
var b = b()
@@ -0,0 +1,3 @@
package test
internal fun testFunB() {}
@@ -0,0 +1,6 @@
package test
fun bar() {
funB()
testFunB()
}