Files
kotlin-fork/compiler/testData/codegen/bytecodeListing/specialBridges/number.kt
T
Alexander Udalov 968dfddbc9 Tests: adjust test data for bytecode listing tests
- remove obsolete `IGNORE_BACKEND: JVM` directives
- move contents of .ir.txt files to the corresponding .txt
2023-11-02 10:59:29 +00:00

12 lines
344 B
Kotlin
Vendored

abstract class AbstractNumber : Number()
class MyNumber : Number() {
override fun toByte(): Byte = 0
override fun toChar(): Char = 0.toChar()
override fun toDouble(): Double = 0.0
override fun toFloat(): Float = 0.0f
override fun toInt(): Int = 0
override fun toLong(): Long = 0
override fun toShort(): Short = 0
}