mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
12 lines
200 B
Kotlin
Vendored
12 lines
200 B
Kotlin
Vendored
data class A<T>(val x: T)
|
|
|
|
fun box(): String {
|
|
val a = A(42)
|
|
if ("$a" != "A(x=42)") return "$a"
|
|
|
|
val b = A(239.toLong())
|
|
if ("$b" != "A(x=239)") return "$b"
|
|
|
|
return "OK"
|
|
}
|