mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
13 lines
252 B
Kotlin
Vendored
13 lines
252 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
data class A(var string: String)
|
|
|
|
fun box(): String {
|
|
val a = A("Fail")
|
|
if(a.toString() != "A(string=Fail)") return "fail"
|
|
|
|
a.string = "OK"
|
|
if("$a" != "A(string=OK)") return a.toString()
|
|
|
|
return "OK"
|
|
}
|