call correct methods String.valueOf/StringBuilder.append in case of byte/short. #KT-2794 fixed
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user