summary refs log tree commit diff stats
path: root/compiler/seminst.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-07-01 17:35:04 +0200
committerGitHub <noreply@github.com>2021-07-01 17:35:04 +0200
commit3ceaf5c1309ac8d4d68e6f39c13b021bcc1b15f4 (patch)
treeede7643ce84d25d810e490640e2eddd03094181c /compiler/seminst.nim
parent779b4e307bdeb018bb2884920144a8c0d1f3b377 (diff)
downloadNim-3ceaf5c1309ac8d4d68e6f39c13b021bcc1b15f4.tar.gz
fixes #18030 (#18415)
Diffstat (limited to 'compiler/seminst.nim')
-rw-r--r--compiler/seminst.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/seminst.nim b/compiler/seminst.nim
index 68ab2a310..e1fad236c 100644
--- a/compiler/seminst.nim
+++ b/compiler/seminst.nim
@@ -146,8 +146,8 @@ proc instantiateBody(c: PContext, n, params: PNode, result, orig: PSym) =
     freshGenSyms(c, b, result, orig, symMap)
     b = semProcBody(c, b)
     result.ast[bodyPos] = hloBody(c, b)
-    trackProc(c, result, result.ast[bodyPos])
     excl(result.flags, sfForward)
+    trackProc(c, result, result.ast[bodyPos])
     dec c.inGenericInst
 
 proc fixupInstantiatedSymbols(c: PContext, s: PSym) =