mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
15 lines
236 B
Kotlin
Vendored
15 lines
236 B
Kotlin
Vendored
// FILE: JavaClass.java
|
|
|
|
class JavaClass {
|
|
public static String run(Runnable r) {
|
|
return r == null ? "OK" : "FAIL";
|
|
}
|
|
}
|
|
|
|
// FILE: 1.kt
|
|
|
|
fun box(): String {
|
|
val f: (() -> Unit)? = null
|
|
return JavaClass.run(f)!!
|
|
}
|