mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
9 lines
161 B
Kotlin
Vendored
9 lines
161 B
Kotlin
Vendored
fun foo(x: Any) = x !is Runnable
|
|
|
|
fun box(): String {
|
|
val r = object : Runnable {
|
|
override fun run() {}
|
|
}
|
|
return if (!foo(r) && foo(42)) "OK" else "Fail"
|
|
}
|