Test for KT-7222 Redundant boxing on toString call

#KT-7222 Fixed
This commit is contained in:
Michael Bogdanov
2015-04-04 14:22:38 +03:00
parent 0efe8890b8
commit c63ac3e30a
2 changed files with 20 additions and 0 deletions

View File

@@ -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