mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Do not box primitives in a single-entry string template expression
This commit is contained in:
9
compiler/testData/codegen/bytecodeText/stringOperations/primitivesAsStringTemplates.kt
vendored
Normal file
9
compiler/testData/codegen/bytecodeText/stringOperations/primitivesAsStringTemplates.kt
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
fun test(b: Byte, s: Short, i: Int, l: Long) {
|
||||
"$b"
|
||||
"$s"
|
||||
"$i"
|
||||
"$l"
|
||||
}
|
||||
|
||||
// 4 valueOf
|
||||
// 4 INVOKESTATIC java/lang/String.valueOf
|
||||
Reference in New Issue
Block a user