Skip to content

fix #22386 - Indexed initialization of multi dimensional const array does not compile.#22391

Merged
thewilsonator merged 1 commit intodlang:stablefrom
rainers:issue22386
Jan 12, 2026
Merged

fix #22386 - Indexed initialization of multi dimensional const array does not compile.#22391
thewilsonator merged 1 commit intodlang:stablefrom
rainers:issue22386

Conversation

@rainers
Copy link
Member

@rainers rainers commented Jan 12, 2026

pass the element type to initializerToExpression() for the element if the dimensions for type and initializer match

…rray does not compile.

pass the element type to initializerToExpression() for the element if the dimensions for type and initializer match
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @rainers!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

⚠️⚠️⚠️ Warnings ⚠️⚠️⚠️

  • In preparation for migrating from Bugzilla to GitHub Issues, the issue reference syntax has changed. Please add the word "Bugzilla" to issue references. For example, Fix Bugzilla Issue 12345 or Fix Bugzilla 12345.(Reminder: the edit needs to be done in the Git commit message, not the GitHub pull request.)

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "stable + dmd#22391"

Copy link
Contributor

@thewilsonator thewilsonator left a comment

Choose a reason for hiding this comment

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

Thanks!

@thewilsonator thewilsonator merged commit c90cb26 into dlang:stable Jan 12, 2026
64 of 79 checks passed
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.

3 participants