From 526e48b2ed2ee3e9dad9d61c1f3a96444225ebc4 Mon Sep 17 00:00:00 2001 From: narimiran Date: Fri, 3 May 2024 07:35:06 +0200 Subject: [PATCH] handle the weirdness of the type of the `type` keyword --- compiler/sempass2.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim index bc415afacc..48e935d245 100644 --- a/compiler/sempass2.nim +++ b/compiler/sempass2.nim @@ -888,7 +888,7 @@ proc trackCall(tracked: PEffects; n: PNode) = mergeRaises(tracked, effectList[exceptionEffects], n) mergeTags(tracked, effectList[tagEffects], n) gcsafeAndSideeffectCheck() - if a.kind != nkSym or a.sym.magic notin {mNBindSym, mFinished, mExpandToAst, mQuoteAst}: + if a.kind != nkSym or a.sym.magic notin {mNBindSym, mFinished, mExpandToAst, mQuoteAst, mType}: for i in 1..