Migrate boxWithJava tests to multi-file framework
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// FILE: Test.java
|
||||
|
||||
public class Test {
|
||||
public static String invokeMethodWithPublicField() {
|
||||
C c = new C("OK");
|
||||
return c.foo;
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: simple.kt
|
||||
|
||||
class C(@JvmField val foo: String) {
|
||||
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return Test.invokeMethodWithPublicField()
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
public class Test {
|
||||
public static String invokeMethodWithPublicField() {
|
||||
C c = new C("OK");
|
||||
return c.foo;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
class C(@JvmField val foo: String) {
|
||||
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return Test.invokeMethodWithPublicField()
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// FILE: Test.java
|
||||
|
||||
public class Test {
|
||||
public static String invokeMethodWithPublicField() {
|
||||
C c = new C();
|
||||
return c.foo;
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: simple.kt
|
||||
|
||||
class C {
|
||||
@JvmField public val foo: String = "OK"
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return Test.invokeMethodWithPublicField()
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
public class Test {
|
||||
public static String invokeMethodWithPublicField() {
|
||||
C c = new C();
|
||||
return c.foo;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
class C {
|
||||
@JvmField public val foo: String = "OK"
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return Test.invokeMethodWithPublicField()
|
||||
}
|
||||
Reference in New Issue
Block a user