mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
49 lines
1.0 KiB
Kotlin
Vendored
49 lines
1.0 KiB
Kotlin
Vendored
// p1.Container
|
|
package p1
|
|
|
|
class Container {
|
|
class MyString : CharSequence {
|
|
override val length: Int
|
|
get() = 0
|
|
|
|
override fun chars(): IntStream = error("")
|
|
|
|
override fun codePoints(): IntStream = error("")
|
|
|
|
override fun get(index: Int): Char = 'c'
|
|
|
|
override fun subSequence(startIndex: Int, endIndex: Int): CharSequence = MyString()
|
|
}
|
|
|
|
class MyNumber : Number {
|
|
override fun toByte(): Byte {
|
|
TODO("not implemented")
|
|
}
|
|
|
|
override fun toChar(): Char {
|
|
TODO("not implemented")
|
|
}
|
|
|
|
override fun toDouble(): Double {
|
|
TODO("not implemented")
|
|
}
|
|
|
|
override fun toFloat(): Float {
|
|
TODO("not implemented")
|
|
}
|
|
|
|
override fun toInt(): Int {
|
|
TODO("not implemented")
|
|
}
|
|
|
|
override fun toLong(): Long {
|
|
TODO("not implemented")
|
|
}
|
|
|
|
override fun toShort(): Short {
|
|
TODO("not implemented")
|
|
}
|
|
}
|
|
}
|
|
|
|
// FIR_COMPARISON |