Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Issue 23192 - Can't iterate aggregate fields with static foreach inside a member function #14227

Merged
merged 1 commit into from
Jun 18, 2022

Conversation

BorisCarvajal
Copy link
Member

The change is adding an if case for DotVarExp and an optimize() call for a compiler-generated tuple expression just below in static foreach semantic that is needed early.
There are some unsafe cast removals.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @BorisCarvajal!

Bugzilla references

Auto-close Bugzilla Severity Description
23192 normal Can't iterate aggregate fields with static foreach inside a member function

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#14227"

@dlang-bot dlang-bot merged commit 16285cf into dlang:master Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants