fix for several (unlikely all) closely related problems with handling of byte/short/char on Delvik #KT-2251 fixed

This commit is contained in:
Alex Tkachman
2012-09-18 16:50:06 +03:00
parent 75a504e7b2
commit ae93018546
6 changed files with 40 additions and 38 deletions
@@ -1,4 +1,10 @@
class A(var b: Byte) {
fun c(d: Short) = (b + d.toByte()).toChar()
}
fun box() : String {
if(A(10.toByte()).c(20.toShort()) != 30.toByte().toChar()) return "plus failed"
var x = 20.toByte()
var y = 20.toByte()
val foo = {