MPP: test different jvm implementations for single common module
Add test infrastructure to support same platform implementations
This commit is contained in:
idea/testData/multiModuleHighlighting/multiplatform/differentJvmImpls/a_common_dep(stdlib)/common.kt
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package common
|
||||
|
||||
expect class A
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
package j1;
|
||||
|
||||
import common.A;
|
||||
|
||||
public class Use {
|
||||
public static void use() {
|
||||
A a = new A();
|
||||
a.id1();
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package common
|
||||
|
||||
actual class A {
|
||||
fun id1() {}
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
package j2;
|
||||
|
||||
import common.A;
|
||||
|
||||
public class Use {
|
||||
public static void use() {
|
||||
A a = new A();
|
||||
a.id2();
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package common
|
||||
|
||||
actual class A {
|
||||
fun id2() {}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package j;
|
||||
|
||||
import common.A;
|
||||
|
||||
public class Use {
|
||||
public static void use(A a) {
|
||||
a.id2();
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
package b
|
||||
|
||||
import common.A
|
||||
|
||||
fun use(a: A) {
|
||||
a.id2()
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package j;
|
||||
|
||||
import common.A;
|
||||
|
||||
public class Use {
|
||||
public static void use(A a) {
|
||||
a.id1();
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
package c
|
||||
|
||||
import common.A
|
||||
|
||||
fun use(a: A) {
|
||||
a.id1()
|
||||
}
|
||||
Reference in New Issue
Block a user