Files
kotlin-fork/compiler/testData/codegen/box/sam/constructors/sameWrapperClass.kt
T
2021-10-02 06:14:35 +00:00

16 lines
447 B
Kotlin
Vendored

// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: IGNORED_IN_JS
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// SAM_CONVERSIONS: CLASS
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"
}