mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
13 lines
359 B
Kotlin
Vendored
13 lines
359 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// IGNORE_BACKEND: JS_IR
|
|
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS, NATIVE
|
|
|
|
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"
|
|
}
|