call correct methods String.valueOf/StringBuilder.append in case of byte/short. #KT-2794 fixed

This commit is contained in:
Alex Tkachman
2012-09-20 11:46:40 +03:00
parent a163236713
commit b022eec0fa
3 changed files with 23 additions and 12 deletions
@@ -0,0 +1,6 @@
fun box () : String {
val b = 4.toByte()
val s = 5.toShort()
val c: Char = 'A'
return if( "$b" == "4" && " $b" == " 4" && "$s" == "5" && " $s" == " 5" && "$c" == "A" && " $c" == " A") "OK" else "fail"
}