mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Test for KT-7222 Redundant boxing on toString call
#KT-7222 Fixed
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
fun main() {
|
||||
false.toString()
|
||||
1.toByte().toString()
|
||||
1.toShort().toString()
|
||||
1.toString()
|
||||
1L.toString()
|
||||
1.0F.toString()
|
||||
1.0.toString()
|
||||
'c'.toString()
|
||||
}
|
||||
|
||||
/*Check that all "valueOf" are String ones and there is no boxing*/
|
||||
// 8 valueOf
|
||||
// 8 INVOKESTATIC java/lang/String.valueOf
|
||||
Reference in New Issue
Block a user