Files
kotlin-fork/compiler/testData/codegen/box/dataClasses/copy/kt12708.kt
T
2018-06-14 19:54:30 +03:00

16 lines
214 B
Kotlin
Vendored

// LANGUAGE_VERSION: 1.1
fun box(): String {
val a: A = B(1)
a.copy(1)
a.component1()
return "OK"
}
interface A {
fun copy(x: Int): A
fun component1(): Any
}
data class B(val x: Int) : A