diff options
author | Zahary Karadjov <zahary@gmail.com> | 2017-06-10 23:14:25 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-06-20 11:29:42 +0200 |
commit | 367d23235182ad9468d1e83e9380d2eea0c134b1 (patch) | |
tree | a28f9b1b6bf5a72518971d8d68e66900253aff05 /compiler/semcall.nim | |
parent | 0149e418bec1b4433ea3d2e03a30735c1b7b16a3 (diff) | |
download | Nim-367d23235182ad9468d1e83e9380d2eea0c134b1.tar.gz |
fix #1017; fix #3309
Diffstat (limited to 'compiler/semcall.nim')
-rw-r--r-- | compiler/semcall.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim index 881532d57..5984e25e0 100644 --- a/compiler/semcall.nim +++ b/compiler/semcall.nim @@ -446,7 +446,8 @@ proc explicitGenericSym(c: PContext, n: PNode, s: PSym): PNode = proc explicitGenericInstantiation(c: PContext, n: PNode, s: PSym): PNode = assert n.kind == nkBracketExpr for i in 1..sonsLen(n)-1: - n.sons[i].typ = semTypeNode(c, n.sons[i], nil) + let e = semExpr(c, n.sons[i]) + n.sons[i].typ = e.typ.skipTypes({tyTypeDesc}) var s = s var a = n.sons[0] if a.kind == nkSym: |