fix complex typdesc iterators

This commit is contained in:
Jasper Jenkins 2019-05-08 14:29:42 -07:00
commit 55a3b51e40
2 changed files with 18 additions and 0 deletions

View file

@ -560,6 +560,7 @@ type
proc putArgInto(arg: PNode, formal: PType): TPutArgInto =
# This analyses how to treat the mapping "formal <-> arg" in an
# inline context.
if formal.kind == tyTypeDesc: return paDirectMapping
if skipTypes(formal, abstractInst).kind in {tyOpenArray, tyVarargs}:
if arg.kind == nkStmtListExpr:
return paComplexOpenarray