Closed JSAbrahams closed 1 year ago
Check does not notice erroneous types when assigning using nested ifs.
def x := 20 def a: int := if x > 10 then if x > 30 then "a string" else x - 1 else x
Should fail because a has type Int even though there is a possibility it could be a string.
a
Int
Description of Bug
Check does not notice erroneous types when assigning using nested ifs.
How to Reproduce
Expected behavior
Should fail because
a
has typeInt
even though there is a possibility it could be a string.