Files
Nim/compiler
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
..
2023-12-15 10:20:57 +01:00
2026-06-15 23:33:16 +02:00
2026-06-14 22:35:06 +02:00
2025-12-01 22:59:12 +01:00
2026-06-11 14:10:42 +02:00
2026-02-10 13:21:35 +01:00
2026-06-14 22:35:06 +02:00
2026-06-14 22:35:06 +02:00
2026-06-14 22:35:06 +02:00
2026-06-14 22:35:06 +02:00
2026-06-14 22:35:06 +02:00
2026-06-14 22:35:06 +02:00
2026-06-14 22:35:06 +02:00
2026-06-14 22:35:06 +02:00
2026-06-14 22:35:06 +02:00
2025-12-31 13:33:57 +01:00
2017-01-07 22:35:09 +01:00
2026-02-10 13:21:35 +01:00
2026-06-14 22:35:06 +02:00
2025-12-11 18:22:38 +01:00
2025-12-11 18:22:38 +01:00
2026-06-07 19:55:56 +02:00
2025-11-25 12:49:23 +01:00
2026-04-02 07:19:43 +02:00
2024-12-27 19:42:18 +01:00
2026-06-14 22:35:06 +02:00
2026-06-14 22:35:06 +02:00
2026-04-02 07:19:43 +02:00
2026-06-14 22:35:06 +02:00
2025-12-11 18:22:38 +01:00
2026-04-02 07:19:43 +02:00
2026-06-14 22:35:06 +02:00
2026-06-14 22:35:06 +02:00
2021-01-12 09:36:51 +01:00
2026-06-14 22:35:06 +02:00
2026-01-09 13:10:04 +01:00
2026-06-14 22:35:06 +02:00
2026-06-15 23:33:16 +02:00
2026-06-14 22:35:06 +02:00
2025-12-11 18:22:38 +01:00
2026-06-15 23:33:16 +02:00
2026-06-14 22:35:06 +02:00
2026-06-14 22:35:06 +02:00
2026-02-10 13:21:35 +01:00
2023-07-02 22:36:05 +02:00
2023-11-06 18:33:28 +01:00
2026-06-15 23:33:16 +02:00
2025-12-11 18:22:38 +01:00
2026-06-14 22:35:06 +02:00
2026-06-14 22:35:06 +02:00
2025-12-11 18:22:38 +01:00
2025-12-11 18:22:38 +01:00
2026-06-14 22:35:06 +02:00
2026-06-14 22:35:06 +02:00
2026-06-14 22:35:06 +02:00
2026-06-15 23:33:16 +02:00
2026-06-14 22:35:06 +02:00
2024-03-16 08:35:18 +08:00
2025-12-29 13:52:22 +01:00
2025-12-31 13:33:57 +01:00
2026-06-14 22:35:06 +02:00
2026-06-14 22:35:06 +02:00
2023-12-25 07:12:54 +01:00

Nim Compiler

  • This directory contains the Nim compiler written in Nim.
  • Note that this code has been translated from a bootstrapping version written in Pascal.
  • So the code is not a poster child of good Nim code.

See Internals of the Nim Compiler for more information.