dmd
dmd copied to clipboard
[foreach] Deprecate `ref` for array index or ForeachRangeStatement
Fix Bugzilla 24499 - foreach over a ref parameter to an rvalue should be an error Fix Bugzilla 24232 - ref for index of foreach for arrays is not allowed by spec but accepted by compiler