MPP: test different jvm implementations for single common module

Add test infrastructure to support same platform implementations
This commit is contained in:
Pavel V. Talanov
2018-08-20 16:55:20 +02:00
parent cb8951eeef
commit 7087a1b3f5
12 changed files with 96 additions and 7 deletions
@@ -0,0 +1,3 @@
package common
expect class A
@@ -0,0 +1,10 @@
package j1;
import common.A;
public class Use {
public static void use() {
A a = new A();
a.id1();
}
}
@@ -0,0 +1,5 @@
package common
actual class A {
fun id1() {}
}
@@ -0,0 +1,10 @@
package j2;
import common.A;
public class Use {
public static void use() {
A a = new A();
a.id2();
}
}
@@ -0,0 +1,5 @@
package common
actual class A {
fun id2() {}
}
@@ -0,0 +1,9 @@
package j;
import common.A;
public class Use {
public static void use(A a) {
a.id2();
}
}
@@ -0,0 +1,7 @@
package b
import common.A
fun use(a: A) {
a.id2()
}
@@ -0,0 +1,9 @@
package j;
import common.A;
public class Use {
public static void use(A a) {
a.id1();
}
}
@@ -0,0 +1,7 @@
package c
import common.A
fun use(a: A) {
a.id1()
}