From cf0a45af5b3c66a966683b5267ca29078282850d Mon Sep 17 00:00:00 2001 From: bung87 Date: Tue, 3 Oct 2023 03:24:30 +0800 Subject: [PATCH] semProcAux hasError cover fixupInstantiatedSymbols --- compiler/sem/seminst.nim | 11 ++++++++--- compiler/sem/semstmts.nim | 3 ++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/compiler/sem/seminst.nim b/compiler/sem/seminst.nim index 5a88c010cea..96510129484 100644 --- a/compiler/sem/seminst.nim +++ b/compiler/sem/seminst.nim @@ -119,15 +119,20 @@ proc instantiateBody(c: PContext, n, params: PNode, result, orig: PSym) = trackProc(c, result, result.ast[bodyPos]) dec c.inGenericInst -proc fixupInstantiatedSymbols(c: PContext, s: PSym) = +proc fixupInstantiatedSymbols(c: PContext, s: PSym): bool = + result = true for i in 0..