[Issue 21258] Tuple parameters with defaults use the first tuple element for all defaults since 2.094.0-beta.1
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 18 02:48:15 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21258
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #11749 "Fix 21258 - Tuple parameters use the first
element of a default tuple value" was merged into stable:
- 8d3fe8fe5bf12a4bf493ddcd78bc4f6a82118784 by Geod24:
Fix 21258 - Tuple parameters use the first element of a default tuple value
The logic tried to use a single variable for both keeping track of the
original index and the extended index, but actually only tracked the
extended index.
Since `if (tupleStartIdx < eidx) tupleStartIdx = eidx` would be true
for every iteration, we would always assign the value at index 0.
https://github.com/dlang/dmd/pull/11749
--
More information about the Digitalmars-d-bugs
mailing list