diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2022-10-17 23:48:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 23:48:51 +0200 |
commit | 81087c949f620dc80697364da414872791ffe23c (patch) | |
tree | 870c578d221484861f485371ebde2fca18d6ca08 /compiler/patterns.nim | |
parent | c0824b9b80f50807fc41b621760c4b685d1d7497 (diff) | |
download | Nim-81087c949f620dc80697364da414872791ffe23c.tar.gz |
fixes #20572 (#20585)
* fixes #20572 * added a test case
Diffstat (limited to 'compiler/patterns.nim')
-rw-r--r-- | compiler/patterns.nim | 2 |
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.} = |