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
comptime: first()/last()/rest() on fixed arrays and slices are not comptime-evaluable #2386
error: method 'first' is not comptime-evaluable yet. List's first() works in comptime (its std body evaluates); the array/slice forms are compiler-declared with no body for ComptimeEval to run. Add ComptimeEval cases for first/last/rest over comptime array/slice values (place forms yield the element value the same way indexing does; rest() builds the sub-array/sub-slice comptime value), with a comptime fixture next to behav_d117_array_slice_forms.
Fixed on main by 2396bc9 (PR #2652, stack #2658; battery green on the stack top 48c1c72). The commit message names the root-cause line and the regression test.
Activity
ehartford commentedon Oct 25, 2026
Triage 2026-10-25,
with v0.15.3.0(main a261b65): reproduced.pre-release: a valid program is refused, and the fix is three evaluator cases beside the List ones.
comptime: first(), last() and rest() of a fixed array evaluate, and `…
ehartford commentedon Oct 25, 2026
Fixed on main by 2396bc9 (PR #2652, stack #2658; battery green on the stack top 48c1c72). The commit message names the root-cause line and the regression test.
test: `??` on an Option evaluates in a build.w (#1041) (#2673)