Migrate boxWithJava tests to multi-file framework

This commit is contained in:
Alexander Udalov
2016-03-01 19:18:37 +03:00
parent 0801ae5364
commit 2de7f38427
266 changed files with 2271 additions and 1729 deletions
@@ -0,0 +1,27 @@
// FILE: JavaClass.java
public class JavaClass {
public String runZ(Z z) {
return z.run("O", "K");
}
protected interface Z {
String run(String s1, String s2);
}
}
// FILE: Kotlin.kt
package zzz
import JavaClass
import JavaClass.Z
class A : JavaClass() {
fun test() = runZ(JavaClass.Z {a, b -> a + b})
}
fun box(): String {
return A().test()
}