forked from M-Labs/artiq
1
0
Fork 0

compiler/tools/eval_constant: raise NotConstant on calls

This commit is contained in:
Sebastien Bourdeauducq 2014-08-18 23:11:27 +08:00
parent b1598ba659
commit 24544f2758
1 changed files with 2 additions and 0 deletions

View File

@ -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