Compile modules with circular dependency as one module
This commit is contained in:
+12
@@ -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>
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package module2
|
||||
|
||||
public object KotlinObject {
|
||||
public fun oldKotlinMethod() {
|
||||
}
|
||||
|
||||
public fun newKotlinMethod() {
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package module2
|
||||
|
||||
import module1.*
|
||||
|
||||
fun bar() {
|
||||
JavaClass.oldJavaMethod()
|
||||
JavaClass.newJavaMethod()
|
||||
|
||||
KotlinObject.oldKotlinMethod()
|
||||
KotlinObject.newKotlinMethod()
|
||||
}
|
||||
Reference in New Issue
Block a user