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

9 lines
195 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" == "A(x=kotlin.Unit)") "OK" else "$a"
}