mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
7 lines
145 B
Kotlin
Vendored
7 lines
145 B
Kotlin
Vendored
data class A(val x: Int) {
|
|
override fun toString(): String = "!"
|
|
}
|
|
|
|
fun box(): String {
|
|
return if (A(0).toString() == "!") "OK" else "fail"
|
|
} |