Files
kotlin-fork/compiler/testData/codegen/box/unit/unitClassObject.kt
T
2020-11-09 16:04:43 +03:00

14 lines
238 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: UNIT_ISSUES
fun box(): String {
Unit
val a = Unit
val b = Unit
if (a != b) return "Fail a != b"
if (Unit != Unit) return "Fail Unit != Unit"
return "OK"
}