Compile modules with circular dependency as one module

Original commit: 2d8dcaddd0
This commit is contained in:
Nikolay Krasko
2015-05-05 19:07:22 +03:00
parent a5d0547c1e
commit 1937ee3986
12 changed files with 140 additions and 3 deletions
@@ -0,0 +1,12 @@
<?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" />
</content>
<orderEntry type="jdk" jdkName="IDEA_JDK" jdkType="JavaSDK" />
<orderEntry type="module" module-name="module1" />
</component>
</module>
@@ -0,0 +1,9 @@
package module2
public object KotlinObject {
public fun oldKotlinMethod() {
}
public fun newKotlinMethod() {
}
}
@@ -0,0 +1,11 @@
package module2
import module1.*
fun bar() {
JavaClass.oldJavaMethod()
JavaClass.newJavaMethod()
KotlinObject.oldKotlinMethod()
KotlinObject.newKotlinMethod()
}