forked from M-Labs/artiq
compiler/tools/eval_constant: raise NotConstant on calls
This commit is contained in:
parent
b1598ba659
commit
24544f2758
@ -57,5 +57,7 @@ def eval_constant(node):
|
||||
except:
|
||||
raise NotConstant
|
||||
return units.Quantity(amount, unit)
|
||||
else:
|
||||
raise NotConstant
|
||||
else:
|
||||
raise NotConstant
|
||||
|
Loading…
Reference in New Issue
Block a user