From 55a3b51e40a7d3301a114a66712c5daebae0ac6d Mon Sep 17 00:00:00 2001 From: Jasper Jenkins Date: Wed, 8 May 2019 14:29:42 -0700 Subject: fix complex typdesc iterators --- compiler/transf.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler') diff --git a/compiler/transf.nim b/compiler/transf.nim index 0e788b833..c4da48d53 100644 --- a/compiler/transf.nim +++ b/compiler/transf.nim @@ -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 -- cgit 1.4.1-2-gfad0