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()
|
||||
}
|
||||
Reference in New Issue
Block a user