mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
9 lines
137 B
Kotlin
Vendored
9 lines
137 B
Kotlin
Vendored
data class A(var string: String)
|
|
|
|
fun box(): String {
|
|
val a = A("Fail")
|
|
a.string = "OK"
|
|
val (result) = a
|
|
return result
|
|
}
|