From d77c883911822c98045809461d85889604196b61 Mon Sep 17 00:00:00 2001 From: def Date: Fri, 13 Mar 2015 17:17:42 +0100 Subject: [PATCH] globalError instead of localError when failing infinite recursion globalError throws an exception, so this works for `nim check` as well. --- compiler/semtypes.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 5e9e584ebb..8a9f4a988e 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -788,7 +788,7 @@ proc liftParamType(c: PContext, procKind: TSymKind, genericParams: PNode, else: for i in 0 ..