From 813c4b1347bc70c8e770e3e0d44ae230ac221438 Mon Sep 17 00:00:00 2001 From: metagn <10591326+metagn@users.noreply.github.com> Date: Thu, 28 Dec 2023 01:36:57 +0300 Subject: [PATCH] fix compile error --- compiler/semexprs.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 416d4a472c7f3..a914d0388f696 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -3033,9 +3033,9 @@ proc resolveIdent(c: PContext, ident: PIdent, resultNode: var PNode, # choice.len == 1 can be true here but as long as it's a symchoice # it's still not resolved if isSymChoice(choice): + result = nil if efAllowSymChoice in flags: resultNode = choice - result = nil else: errorUseQualifier(c, info, candidates) else: