← Back to index
|
Original Bugzilla link
Bug 21272 – Overzealous and inconsistent foreach shadowing deprecations for nested functions
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-09-23T15:17:21Z
Last change time
2020-09-26T20:09:03Z
Keywords
pull, rejects-valid
Assigned to
No Owner
Creator
Vladimir Panteleev
Comments
Comment #0
by dlang-bugzilla — 2020-09-23T15:17:21Z
////////////////// test.d ////////////////// void fun() { int var1, var2, var3; void gun() { int var1; // OK? int[] arr; foreach (i, var2; arr) {} // OK? int[int] aa; foreach (k, var3; aa) {} // Not OK?? } } //////////////////////////////////////////// Introduced in
https://github.com/dlang/dmd/pull/10404
Comment #1
by dlang-bot — 2020-09-24T05:07:45Z
@RazvanN7 created dlang/dmd pull request #11790 "Fix Issue 21272 - Overzealous and inconsistent foreach shadowing deprecations for nested functions" fixing this issue: - Fix Issue 21272 - Overzealous and inconsistent foreach shadowing deprecations for nested functions
https://github.com/dlang/dmd/pull/11790
Comment #2
by dlang-bot — 2020-09-24T06:27:17Z
dlang/dmd pull request #11790 "Fix Issue 21272 - Overzealous and inconsistent foreach shadowing deprecations for nested functions" was merged into stable: - 89e8db1e20030551daecc74c5ff53a9f456be770 by RazvanN7: Fix Issue 21272 - Overzealous and inconsistent foreach shadowing deprecations for nested functions
https://github.com/dlang/dmd/pull/11790
Comment #3
by dlang-bot — 2020-09-26T20:09:03Z
dlang/dmd pull request #11793 "merge stable" was merged into master: - 0218258b98feb63e10f0b23b24c641dfc7878b24 by RazvanN7: Fix Issue 21272 - Overzealous and inconsistent foreach shadowing deprecations for nested functions
https://github.com/dlang/dmd/pull/11793