fix for several (unlikely all) closely related problems with handling of byte/short/char on Delvik #KT-2251 fixed
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user