when generating coercion, take into account the original type of the expression
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fun box(): String {
|
||||
val x: Any = 'A'
|
||||
var y = 0
|
||||
if (x is Char) {
|
||||
y = x.toInt()
|
||||
}
|
||||
return if (y == 65) "OK" else "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user