mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
11 lines
192 B
Kotlin
Vendored
11 lines
192 B
Kotlin
Vendored
data class A(val a: Double, val b: Double)
|
|
|
|
fun box() : String {
|
|
val a = A(1.0, 1.0)
|
|
val b = a.copy()
|
|
if (b.a == 1.0 && b.b == 1.0) {
|
|
return "OK"
|
|
}
|
|
return "fail"
|
|
}
|