mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 00:21:32 +00:00
10 lines
250 B
Kotlin
Vendored
10 lines
250 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
data class A(var x: Int, val z: Int)
|
|
|
|
fun box(): String {
|
|
val a = A(1, 3)
|
|
if (a.component1() != 1) return "Fail: ${a.component1()}"
|
|
if (a.component2() != 3) return "Fail: ${a.component2()}"
|
|
return "OK"
|
|
}
|