Files
Nim/tests/enum
ringabout 6eef0cc2d5 fixes #25908; resolves lent enum disambiguation (#25929)
fixes #25908

When an enum identifier is resolved as an `nkSymChoice`, one of the
candidates may come from a loop-local view and carry `tyVar` or
`tyLent`.

Enum disambiguation should compare the underlying enum type only.
Otherwise a pure-enum field can win incorrectly even though the intended
symbol is already present in the choice set.

Keep the `includePureEnum` lookup path for enum-typed expectations so
#23976 still works, but normalize `var`/`lent` only at the symchoice
selection point.
2026-06-23 12:22:29 +02:00
..
2022-04-07 20:57:50 +02:00
2022-04-07 20:57:50 +02:00
2022-04-07 20:57:50 +02:00
2020-11-02 08:56:51 +01:00
2019-02-13 23:30:14 +01:00