Do not box primitives in a single-entry string template expression

This commit is contained in:
Mikhail Zarechenskiy
2018-07-20 00:04:00 +03:00
parent 045e3f53b0
commit 9aa4247065
3 changed files with 15 additions and 1 deletions

View 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