Files
kotlin-fork/compiler/testData/debug/localVariables/copyFunction.kt
T
Mads Ager e9c9d5731e [JVM] Port Stepping and LocalVariable tests to new test infra.
This is in preparation for enabling the tests for FIR which will
be easier to do when the tests are on the new infrastructure.
2021-10-15 20:03:54 +03:00

18 lines
523 B
Kotlin
Vendored

//FILE: test.kt
data class someClass(val a: Double, val b: Double)
fun box() {
val a = someClass(1.0, 2.0)
val b = a.copy(b = 3.0)
}
// EXPECTATIONS
// test.kt:6 box:
// test.kt:3 <init>: a:double=1.0:double, b:double=2.0:double
// test.kt:6 box:
// test.kt:7 box: a:someClass=someClass
// test.kt:3 <init>: a:double=1.0:double, b:double=3.0:double
// test.kt:-1 copy: a:double=1.0:double, b:double=3.0:double
// test.kt:7 box: a:someClass=someClass
// test.kt:8 box: a:someClass=someClass, b:someClass=someClass