From 367d23235182ad9468d1e83e9380d2eea0c134b1 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Sat, 10 Jun 2017 23:14:25 +0300 Subject: fix #1017; fix #3309 --- compiler/semcall.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/semcall.nim') 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: -- cgit 1.4.1-2-gfad0