Files
kotlin-fork/compiler/testData/codegen/bytecodeListing/specialBridges/number.kt
T

14 lines
388 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// ^ see KT-42578
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
}