Compile modules with circular dependency as one module
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="xUTF-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="module2" />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package module1;
|
||||
|
||||
public class JavaClass {
|
||||
public static void newJavaMethod() {}
|
||||
public static void oldJavaMethod() {}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package module1
|
||||
|
||||
import module2.*
|
||||
|
||||
fun foo() {
|
||||
JavaClass.oldJavaMethod()
|
||||
JavaClass.newJavaMethod()
|
||||
|
||||
KotlinObject.oldKotlinMethod()
|
||||
KotlinObject.newKotlinMethod()
|
||||
}
|
||||
Reference in New Issue
Block a user