Skip to content

fix: DynamicStatement.all ArrayList initialization - #211

Merged
vrischmann merged 1 commit into
vrischmann:masterfrom
samooth:fix/dynamic-statement-all
Sep 11, 2026
Merged

fix: DynamicStatement.all ArrayList initialization#211
vrischmann merged 1 commit into
vrischmann:masterfrom
samooth:fix/dynamic-statement-all

Conversation

@samooth

@samooth samooth commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

DynamicStatement.all initializes std.ArrayList(Type) with .{} but the unmanaged ArrayList has no default field values on Zig 0.16. Statement.all already uses .empty — this makes the dynamic path consistent.

Adds a regression test for DynamicStatement.all which had zero coverage.

Closes #208.

DynamicStatement.all initialized std.ArrayList(Type) with = .{} but the
unmanaged ArrayList has no default field values on Zig 0.16, causing a
compilation error. Statement.all (the static counterpart) already used
= .empty; this makes the dynamic path consistent.

Adds a regression test for DynamicStatement.all which had zero coverage.
@vrischmann
vrischmann merged commit 6f05814 into vrischmann:master Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misscompilation with initialization of ArrayList

2 participants