Fix issue #21630 - non-static range foreach ignores enum and alias - #21633
Fix issue #21630 - non-static range foreach ignores enum and alias#21633Bolpat wants to merge 1 commit into
Conversation
|
Thanks for your pull request and interest in making D better, @Bolpat! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.
|
|
The tests fail because there’s also The parser can only reliably reject non-static range foreach with |
|
Fair, tried to fix the underlying issue at #21631 . |
|
Maybe this is salvageable. Before DIP 1010 introduced
Code written for 2.076.0 or later that uses |
Fixes #21630
@tgehr, my implementation does it in the parser, which allows pointing at the offending keyword
enumoralias.