You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A record in a recursive group can be read before it exists #9466
Loading the module throws ReferenceError: Cannot access 'a' before initialization.
b reads a, so b becomes a dummy. But a reads nothing of the group eagerly (its field is a function), so it is declared directly, after b's updateDummy already read it. A binding should also become a dummy (or be declared first) when an earlier binding in the group reads it. functions_before_values doesn't help here because a is a record, not a function.
Found while reviewing #9427, which doesn't change this. This issue was filed by Claude.
#9427 fixes this, in 7b2e4eb. A binding that an earlier binding of the group reads is now built into a dummy too, so it is declared before that read. Your example compiles to:
Activity
Say that a spread's source is still evaluated in warning 23
illusionalsagacity commentedon Nov 29, 2026
#9427 fixes this, in 7b2e4eb. A binding that an earlier binding of the group reads is now built into a dummy too, so it is declared before that read. Your example compiles to:
It's a test in
recursive_records_test.reson that branch now.Investigated by Claude.
Say that a spread's source is still evaluated in warning 23
Say that a spread's source is still evaluated in warning 23