From dbc8aa60e30da3f85306455387bb563437215725 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 9 Feb 2014 00:41:53 +0100 Subject: [PATCH] fixes 'newSeq[T]' instantiation bug --- compiler/semexprs.nim | 12 +++++++++--- compiler/semgnrc.nim | 11 ++++------- compiler/sigmatch.nim | 1 + doc/manual.txt | 2 +- tests/generics/tgenericrefs.nim | 12 ++++++++++++ 5 files changed, 27 insertions(+), 11 deletions(-) diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 6c76795780..a8a16672d6 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -1819,6 +1819,10 @@ proc semExport(c: PContext, n: PNode): PNode = c.module.ast.add x result = n +proc setGenericParams(c: PContext, n: PNode) = + for i in 1 ..