mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
11 lines
300 B
Kotlin
Vendored
11 lines
300 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
fun box(): String {
|
|
val f = { }
|
|
val class1 = (Runnable(f) as Object).getClass()
|
|
val class2 = (Runnable(f) as Object).getClass()
|
|
|
|
return if (class1 == class2) "OK" else "$class1 $class2"
|
|
}
|