New J2K: add multi-file conversion tests from old j2k

This commit is contained in:
Ilya Kirillov
2019-10-09 17:20:46 +03:00
parent f951ed9dba
commit 999918d499
60 changed files with 862 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
package test;
public class PureUtils {
public static void foo1(int p) {}
public static int foo2() { return 1; }
}
+10
View File
@@ -0,0 +1,10 @@
package test
object PureUtils {
@JvmStatic
fun foo1(p: Int) {}
@JvmStatic
fun foo2(): Int {
return 1
}
}
+12
View File
@@ -0,0 +1,12 @@
package test;
public class Utils {
public static void foo1(int p) {
}
public static int foo2() {
return 1;
}
public static int staticField = 1;
}
+13
View File
@@ -0,0 +1,13 @@
package test
object Utils {
@JvmStatic
fun foo1(p: Int) {}
@JvmStatic
fun foo2(): Int {
return 1
}
@JvmField
var staticField = 1
}
+11
View File
@@ -0,0 +1,11 @@
package test;
class C {
void foo() {
Utils.foo1(Utils.staticField);
Utils.staticField += Utils.foo2();
PureUtils.foo1(PureUtils.foo2());
}
}
@@ -0,0 +1,11 @@
package test;
class C {
void foo() {
Utils.foo1(Utils.staticField);
Utils.staticField += Utils.foo2();
PureUtils.foo1(PureUtils.foo2());
}
}
@@ -0,0 +1,6 @@
package test
fun foo() {
Utils.foo1(Utils.staticField)
PureUtils.foo1(PureUtils.foo2())
}
@@ -0,0 +1,6 @@
package test
fun foo() {
Utils.foo1(Utils.staticField)
PureUtils.foo1(PureUtils.foo2())
}