Do not cast arguments of binary operation to expected type for byte and short
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
fun box(): String {
|
||||
val a: Long = 2147483647 + 1
|
||||
if (a != -2147483648L) return "fail: in this case we should add to ints and than cast the result to long - overflow expected"
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user