Fixed nimvm in generics.
This commit is contained in:
parent
a480bebfce
commit
4ef4ad305c
3 changed files with 14 additions and 8 deletions
|
|
@ -640,8 +640,6 @@ proc getConstExpr(m: PSym, n: PNode): PNode =
|
|||
of mNaN: result = newFloatNodeT(NaN, n)
|
||||
of mInf: result = newFloatNodeT(Inf, n)
|
||||
of mNegInf: result = newFloatNodeT(NegInf, n)
|
||||
of mNimvm:
|
||||
localError(n.info, "illegal context for 'nimvm' magic")
|
||||
else:
|
||||
if sfFakeConst notin s.flags: result = copyTree(s.ast)
|
||||
of {skProc, skMethod}:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue