mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
9 lines
155 B
Kotlin
Vendored
9 lines
155 B
Kotlin
Vendored
fun foo(x: Any) = x as? Runnable
|
|
|
|
fun box(): String {
|
|
val r = object : Runnable {
|
|
override fun run() {}
|
|
}
|
|
return if (foo(r) === r) "OK" else "Fail"
|
|
}
|