fixes #5399
This commit is contained in:
parent
c9dd6908ae
commit
61181702d5
1 changed files with 1 additions and 1 deletions
|
|
@ -659,7 +659,7 @@ proc getConstExpr(m: PSym, n: PNode): PNode =
|
||||||
localError(a.info, errCannotEvalXBecauseIncompletelyDefined,
|
localError(a.info, errCannotEvalXBecauseIncompletelyDefined,
|
||||||
"sizeof")
|
"sizeof")
|
||||||
result = nil
|
result = nil
|
||||||
elif skipTypes(a.typ, typedescInst).kind in
|
elif skipTypes(a.typ, typedescInst+{tyRange}).kind in
|
||||||
IntegralTypes+NilableTypes+{tySet}:
|
IntegralTypes+NilableTypes+{tySet}:
|
||||||
#{tyArray,tyObject,tyTuple}:
|
#{tyArray,tyObject,tyTuple}:
|
||||||
result = newIntNodeT(getSize(a.typ), n)
|
result = newIntNodeT(getSize(a.typ), n)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue