mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
10 lines
157 B
Kotlin
Vendored
10 lines
157 B
Kotlin
Vendored
data class A(val o: String, val k: String) {
|
|
constructor() : this("O", "k")
|
|
}
|
|
|
|
fun box(): String {
|
|
val a = A().copy(k = "K")
|
|
return a.o + a.k
|
|
}
|
|
|