You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Crystal comparison to booleans can be used to narrow down the type of the variable, thus doing the static analysis, we are not able to properly handle this. Refs #12
deff(x:Bool|Nil)
if x ==false# x is not Int32 and not Nil here.endend
Comparisons to booleans are not pointless if the other operand is a union containing
Bool
:(Comparisons to unions not containing
Bool
are still pointless, as they should always evaluate tofalse
.)The text was updated successfully, but these errors were encountered: