stanford-ppl/Delite

Type conversion bug when assigning a variable

asujeeth opened this issue · 1 comments

var i = 0
if (foo) i = 1.0 else i = 2

results in a runtime generated code type error. This should be caught earlier.

i suspect this has to with type Var still being defined as covariant