summary refs log tree commit diff stats
path: root/compiler/patterns.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2022-10-17 23:48:51 +0200
committerGitHub <noreply@github.com>2022-10-17 23:48:51 +0200
commit81087c949f620dc80697364da414872791ffe23c (patch)
tree870c578d221484861f485371ebde2fca18d6ca08 /compiler/patterns.nim
parentc0824b9b80f50807fc41b621760c4b685d1d7497 (diff)
downloadNim-81087c949f620dc80697364da414872791ffe23c.tar.gz
fixes #20572 (#20585)
* fixes #20572

* added a test case
Diffstat (limited to 'compiler/patterns.nim')
-rw-r--r--compiler/patterns.nim2
1 files changed, 1 insertions, 1 deletions
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.} =