Skip to content

fix: allow list literals in struct type parsing#111

Open
mkaput wants to merge 2 commits intoelixir-tools:mainfrom
mkaput:mk/a57cbd-struct-type-list-literals
Open

fix: allow list literals in struct type parsing#111
mkaput wants to merge 2 commits intoelixir-tools:mainfrom
mkaput:mk/a57cbd-struct-type-list-literals

Conversation

@mkaput
Copy link
Contributor

@mkaput mkaput commented Feb 17, 2026

Struct type parsing skipped list-prefix expressions, causing valid forms like %+[]{} to error.

Handle [ in parse_struct_type/1 by delegating to list literal parsing, matching Elixir behavior for struct type expressions.

Adds a regression assertion in the property-regression test block.

Struct type parsing skipped list-prefix expressions, causing valid forms like `%+[]{}` to error.

Handle `[` in `parse_struct_type/1` by delegating to list literal parsing, matching Elixir behavior for struct type expressions.

Adds a regression assertion in the property-regression test block.
@mhanberg mhanberg force-pushed the mk/a57cbd-struct-type-list-literals branch from 3ffa4f7 to c8a2a1d Compare February 17, 2026 19:30
@mhanberg
Copy link
Contributor

I created #113 for the property failures during the last CI run.

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.

2 participants