* fixes #20572

* added a test case
This commit is contained in:
Andreas Rumpf 2022-10-17 23:48:51 +02:00 • committed by GitHub
commit 81087c949f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 116 additions and 70 deletions

View file

@ -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.} =