allow uints to appear in deep constant expressions
This commit is contained in:
parent
467274a19a
commit
db51eb3e32
1 changed files with 1 additions and 2 deletions
|
|
@ -92,8 +92,7 @@ proc isCaseObj*(n: PNode): bool =
|
||||||
|
|
||||||
proc isDeepConstExpr*(n: PNode): bool =
|
proc isDeepConstExpr*(n: PNode): bool =
|
||||||
case n.kind
|
case n.kind
|
||||||
of nkCharLit..nkInt64Lit, nkStrLit..nkTripleStrLit,
|
of nkCharLit..nkNilLit:
|
||||||
nkFloatLit..nkFloat64Lit, nkNilLit:
|
|
||||||
result = true
|
result = true
|
||||||
of nkExprEqExpr, nkExprColonExpr, nkHiddenStdConv, nkHiddenSubConv:
|
of nkExprEqExpr, nkExprColonExpr, nkHiddenStdConv, nkHiddenSubConv:
|
||||||
result = isDeepConstExpr(n.sons[1])
|
result = isDeepConstExpr(n.sons[1])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue