From 06feaef64a2bb4fbff50091b2f15cb0736c849d3 Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 11 Apr 2015 02:54:20 +0200 Subject: [PATCH] fixes #1658 --- compiler/semtypes.nim | 2 +- tests/objects/tobjloop.nim | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 tests/objects/tobjloop.nim diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 664d54221c..4a45da2f9e 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -789,7 +789,7 @@ proc liftParamType(c: PContext, procKind: TSymKind, genericParams: PNode, @[newTypeS(paramType.kind, c)]) result = addImplicitGeneric(typ) else: - for i in 0 ..