Files
kotlin/compiler/testData/codegen/bytecodeText/stringOperations/primitiveToString.kt
2019-10-07 12:54:11 +02:00

16 lines
470 B
Kotlin
Vendored

fun boolConst() = false.toString()
fun byteConst() = 1.toByte().toString()
fun shortConst() = 1.toShort().toString()
fun intConst() = 1.toString()
fun longConst() = 1L.toString()
fun floatConst() = 1.0F.toString()
fun doubleConst() = 1.0.toString()
fun charConst() = 'c'.toString()
/*Check that all "valueOf" are String ones and there is no boxing*/
// JVM_TEMPLATES:
// 8 valueOf
// 8 INVOKESTATIC java/lang/String.valueOf
// JVM_IR_TEMPLATES:
// 0 valueOf
// 8 LDC \"