fixes #1355
This commit is contained in:
parent
fd0e809934
commit
c14e7565f8
1 changed files with 2 additions and 1 deletions
|
|
@ -82,7 +82,8 @@ proc semSym(c: PContext, n: PNode, s: PSym, flags: TExprFlags): PNode =
|
||||||
case skipTypes(s.typ, abstractInst-{tyTypeDesc}).kind
|
case skipTypes(s.typ, abstractInst-{tyTypeDesc}).kind
|
||||||
of tyNil, tyChar, tyInt..tyInt64, tyFloat..tyFloat128,
|
of tyNil, tyChar, tyInt..tyInt64, tyFloat..tyFloat128,
|
||||||
tyTuple, tySet, tyUInt..tyUInt64:
|
tyTuple, tySet, tyUInt..tyUInt64:
|
||||||
result = inlineConst(n, s)
|
if s.magic == mNone: result = inlineConst(n, s)
|
||||||
|
else: result = newSymNode(s, n.info)
|
||||||
of tyArrayConstr, tySequence:
|
of tyArrayConstr, tySequence:
|
||||||
# Consider::
|
# Consider::
|
||||||
# const x = []
|
# const x = []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue