diff options
author | Jasper Jenkins <jasper.vs.jenkins@gmail.com> | 2019-05-08 14:29:42 -0700 |
---|---|---|
committer | Jasper Jenkins <jasper.vs.jenkins@gmail.com> | 2019-05-08 14:29:42 -0700 |
commit | 55a3b51e40a7d3301a114a66712c5daebae0ac6d (patch) | |
tree | 99ad0221540ef618e21c34aea14e917ed845ec4a /compiler | |
parent | aa768574620c46b1ecc4c63f202a4fdb24c4b3f1 (diff) | |
download | Nim-55a3b51e40a7d3301a114a66712c5daebae0ac6d.tar.gz |
fix complex typdesc iterators
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/transf.nim | 1 |
1 files changed, 1 insertions, 0 deletions
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 |