mirror of https://github.com/m-labs/artiq.git
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