From 8a7f50889c18283670801f442d6778fdff362c70 Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 25 Jan 2014 23:03:43 +0100 Subject: [PATCH] fixes #838 --- compiler/semtypinst.nim | 4 ++-- compiler/vm.nim | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim index ac14179cd5..9c6421315b 100644 --- a/compiler/semtypinst.nim +++ b/compiler/semtypinst.nim @@ -116,8 +116,8 @@ proc hasGenericArguments*(n: PNode): bool = (n.sym.kind == skType and n.sym.typ.flags * {tfGenericTypeParam, tfImplicitTypeParam} != {}) else: - for s in n.sons: - if hasGenericArguments(s): return true + for i in 0..