Files
kotlin-fork/compiler/testData/codegen/box/dataClasses/copy/kt3033.kt
T
Alexander Udalov 20e36438e2 Move some tests from boxWithStdlib/ to box/
Move those tests which do not require neither stdlib nor reflect
2016-03-09 10:25:38 +03:00

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"
}