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

9 lines
211 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: UNIT_ISSUES
data class A(val x: Unit)
fun box(): String {
val a = A(Unit)
return if (a.component1() is Unit) "OK" else "Fail ${a.component1()}"
}