mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
8 lines
219 B
Kotlin
Vendored
8 lines
219 B
Kotlin
Vendored
data class A(val x: Int) {
|
|
fun toArray(): IntArray =
|
|
intArrayOf(x)
|
|
|
|
override fun <!RETURN_TYPE_MISMATCH_ON_OVERRIDE!>toString<!>() =
|
|
toArray().takeWhile { it != -1 } // .joinToString()
|
|
}
|