Migrate boxAgainstJava tests to multi-file framework
This commit is contained in:
+9
-1
@@ -1,3 +1,11 @@
|
||||
// FILE: JavaInterface.java
|
||||
|
||||
interface JavaInterface {
|
||||
void run(Runnable r);
|
||||
}
|
||||
|
||||
// FILE: 1.kt
|
||||
|
||||
class Impl: JavaInterface {
|
||||
override fun run(r: Runnable?) {
|
||||
r?.run()
|
||||
@@ -8,4 +16,4 @@ fun box(): String {
|
||||
var v = "FAIL"
|
||||
Impl().run { v = "OK" }
|
||||
return v
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user