Files
releases/cmd
Sebastian Spaink 632d60e11e topdown: resolve ground refs in --var-values output (#8888)
Fixes #7830

When a failing test expression selected a value out of a local variable
via a ground ref (e.g. tc.data), the pretty --var-values output only
showed the base variable's full value rather than the selected value
being compared. Resolution previously only worked for refs the compiler
rewrites into locals (calls, arithmetic, variable-keyed refs); plain
ground object selections stay inline and were never resolved.

Handle ast.Ref terms in PrettyEvent's var walker: resolve a ground ref
whose base is a bound local against the local bindings and report the
selected value at the ref's location, while still descending to report
the base variable too.

Signed-off-by: Sebastian Spaink <sebastianspaink@gmail.com>
2026-07-14 10:28:35 -05:00
..
2025-10-10 17:51:02 +02:00
2025-07-24 11:33:23 +02:00
2025-07-24 11:33:23 +02:00
2025-07-24 11:33:23 +02:00
2024-12-12 15:27:34 +01:00
2025-10-10 17:51:02 +02:00
2025-08-25 20:02:01 +02:00
2024-12-12 15:09:03 +01:00
2025-07-24 11:33:23 +02:00
2025-07-24 11:33:23 +02:00
2026-05-07 14:43:08 +02:00
2025-07-24 11:33:23 +02:00