mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-30 08:45:16 +00:00
fixes #23952
It reorders `type Foo = enum A, B = -1` to `type Foo = enum B = -1, A`
so that `firstOrd` etc. continue to work.
(cherry picked from commit 294b1566e7)