I just cant use the code below,
var a=5
(a as? Char?:a as Int) //This works fine
(a as? Char?:a as Int)+5 //But this throws an error
error: unresolved reference. None of the following candidates is applicable becaus
e of receiver type mismatch:
with some more lines
What’s wrong with this code?