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:
|
except:
|
||||||
raise NotConstant
|
raise NotConstant
|
||||||
return units.Quantity(amount, unit)
|
return units.Quantity(amount, unit)
|
||||||
|
else:
|
||||||
|
raise NotConstant
|
||||||
else:
|
else:
|
||||||
raise NotConstant
|
raise NotConstant
|
||||||
|
|
Loading…
Reference in New Issue