summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compiler/semtypes.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim
index 5e9e584eb..8a9f4a988 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 .. <paramType.sons.len:
         if paramType.sons[i] == paramType:
-          localError(info, errIllegalRecursionInTypeX, typeToString(paramType))
+          globalError(info, errIllegalRecursionInTypeX, typeToString(paramType))
         var lifted = liftingWalk(paramType.sons[i])
         if lifted != nil:
           paramType.sons[i] = lifted