test(compiler): cover oversized array initializer by masyarakatai · Pull Request #1176 · 8f4e/8f4e · GitHub
Skip to content

test(compiler): cover oversized array initializer - #1176

Merged
andorthehood merged 2 commits into
8f4e:mainfrom
masyarakatai:issue-1131-array-initializer-diagnostic
Oct 25, 2026
Merged

andorthehood merged 2 commits into
8f4e:mainfrom
masyarakatai:issue-1131-array-initializer-diagnostic

Conversation

@masyarakatai

Copy link
Copy Markdown
Contributor

Add the missing compiler diagnostic fixture and generated snapshot for an array initializer containing more values than its declared count.

The focused compiler test passes with the generated diagnostic using error code 47.

Closes #1131.

@irimias57 irimias57 added contributor compiler Compiler, tokenizer, codegen, and language-semantics work labels Oct 21, 2026

@andorthehood andorthehood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the docs and test @masyarakatai !

@andorthehood
andorthehood merged commit fb0c4ad into 8f4e:main Oct 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler Compiler, tokenizer, codegen, and language-semantics work contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a diagnostic fixture for an oversized array initializer

3 participants