Files
kotlin-fork/compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralAndLiteralRunnable.kt
T

18 lines
271 B
Kotlin
Vendored

// FILE: JavaClass.java
class JavaClass {
public static void run(Runnable r1, Runnable r2) {
r1.run();
r2.run();
}
}
// FILE: 1.kt
fun box(): String {
var v = "FAIL"
val f = { v = "O" }
JavaClass.run(f, { v += "K" })
return v
}