From 81087c949f620dc80697364da414872791ffe23c Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 17 Oct 2022 23:48:51 +0200 Subject: fixes #20572 (#20585) * fixes #20572 * added a test case --- compiler/patterns.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/patterns.nim') diff --git a/compiler/patterns.nim b/compiler/patterns.nim index d4577981f..ff9a9efa3 100644 --- a/compiler/patterns.nim +++ b/compiler/patterns.nim @@ -44,7 +44,7 @@ proc canonKind(n: PNode): TNodeKind = case result of nkCallKinds: result = nkCall of nkStrLit..nkTripleStrLit: result = nkStrLit - of nkFastAsgn: result = nkAsgn + of nkFastAsgn, nkSinkAsgn: result = nkAsgn else: discard proc sameKinds(a, b: PNode): bool {.inline.} = -- cgit 1.4.1-2-gfad0