Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Improvement] Update error message for struct initialization #2286

@FoxKiana

Description

@FoxKiana
22:     String module_name;
23:     ASTNode[] children;
24: 
25:     *file_node = { FILE, .node.file_node = { linker_options, module_name, children }, {}, 0, {} };
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(/home/snowfox/development/c3/lucy/src/parser.c3:25:26) Error: Designated initialization with '[] = ...' and '.param = ...' cannot be mixed with normal initialization.

To some it might be unclear what "normal initialization"is

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions