Merge pull request #9873 from arnetheduck/uints-are-consts [bac,ö

allow uints to appear in deep constant expressions
This commit is contained in:
Andreas Rumpf 2018-12-06 09:26:14 +01:00 • committed by GitHub
commit d6dbc50793
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,8 +92,7 @@ proc isCaseObj*(n: PNode): bool =
proc isDeepConstExpr*(n: PNode): bool =
case n.kind
of nkCharLit..nkInt64Lit, nkStrLit..nkTripleStrLit,
nkFloatLit..nkFloat64Lit, nkNilLit:
of nkCharLit..nkNilLit:
result = true
of nkExprEqExpr, nkExprColonExpr, nkHiddenStdConv, nkHiddenSubConv:
result = isDeepConstExpr(n.sons[1])