Skip to content

fix #22281 [REG master] Wrong associative array access with alias this for key#22283

Merged
thewilsonator merged 1 commit intodlang:masterfrom
rainers:issue22281
Dec 21, 2025
Merged

fix #22281 [REG master] Wrong associative array access with alias this for key#22283
thewilsonator merged 1 commit intodlang:masterfrom
rainers:issue22281

Conversation

@rainers
Copy link
Member

@rainers rainers commented Dec 21, 2025

don't omit the cast in aa[cast(K)key] if key converts via alias this, so that the proper type is inferred by _d_aaGetY

…s this for key

don't omit the cast in aa[cast(K)key] if key converts via alias this, so that the proper type is inferred by _d_aaGetY
@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 "master + dmd#22283"

@thewilsonator thewilsonator merged commit 4bd76ab into dlang:master Dec 21, 2025
42 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