forked from PLC-lang/rusty
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(validation): Struct initializers within arrays (PLC-lang#996)
Previously we accepted `arr := [foo := 0, bar := 1]` where `foo` and `bar` are struct fields. Doing so resulted in weird codegen issues documented in PLC-lang#965. This commit disallows this behavior and instead forces users to use parentheses when initializing structs within arrays, e.g. `arr := [(foo := 0, bar := 1), (...)]`.
- Loading branch information
Showing
13 changed files
with
132 additions
and
390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
141 changes: 0 additions & 141 deletions
141
...hots/rusty__parser__tests__expressions_parser_tests__additon_of_two_variables_parsed.snap
This file was deleted.
Oops, something went wrong.
86 changes: 0 additions & 86 deletions
86
...s/rusty__resolver__tests__resolve_expressions_tests__resolve_recursive_function_call.snap
This file was deleted.
Oops, something went wrong.
63 changes: 0 additions & 63 deletions
63
...ts/rusty__resolver__tests__resolve_expressions_tests__resolve_recursive_program_call.snap
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.