mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
8 lines
173 B
Kotlin
Vendored
8 lines
173 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
data class A(val x: Unit)
|
|
|
|
fun box(): String {
|
|
val a = A(Unit)
|
|
return if (a.component1() is Unit) "OK" else "Fail ${a.component1()}"
|
|
}
|