Cast unary intrinsics to expected type
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fun box(): String {
|
||||
if (!foo(1.toByte())) return "fail 1"
|
||||
if (!foo(-1.toByte())) return "fail 2"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun foo(p: Any) = p is Byte
|
||||
Reference in New Issue
Block a user