Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
073a50037049a4e0869085bf4acf7c29e56210e3
/
.
/
compiler
/
testData
/
codegen
/
box
/
dataClasses
/
unitComponent.kt
blob: ad6967dcc9bf9eab59614e17262ac74d1340a908 [
file
] [
log
] [
blame
]
// 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()}"
}