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/transf.nim') 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 option value='devel' selected='selected'>devel This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log tree commit diff stats
path: root/.gitignore
blob: 462df4efc7405f238dda79368b647bd36eb0dca8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43