Files
Nim/tests/objvariant
ringabout d6f60ceb61 fixes #22791; ProveField warning with nested case object (#25774)
fixes #22791

This pull request introduces a minor improvement to the handling of
immutable variables in the compiler and adds a new test case for nested
case objects. The most important changes are:

### Compiler improvements

* Updated the `isLet` guard in `compiler/guards.nim` to recognize
`skConst` symbols as immutable variables, ensuring that constants are
correctly identified alongside lets and other immutable types.

### Test coverage

* Added a new test in `tests/objvariant/tcorrectcheckedfield.nim` for
bug #22791, verifying correct pattern matching and field access in
nested `case` objects with constants.

(cherry picked from commit 3e2cea21ed)
2026-05-28 09:22:36 +02:00
..
2021-02-24 13:49:47 +01:00
2021-04-06 16:20:01 +02:00
2019-05-27 21:29:02 +02:00
2018-12-22 18:39:20 +01:00