Bug 23100 – empty array literal passed to scope param not 'falsey' anymore

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-05-10T10:56:51Z
Last change time
2022-07-09T16:31:55Z
Keywords
pull
Assigned to
No Owner
Creator
Dennis

Comments

Comment #0 by dkorpel — 2022-05-10T10:56:51Z
This fails since https://github.com/dlang/dmd/pull/11039: ``` @safe: void assertFalse(scope int[] x) { assert(!x); } void main() { assertFalse([]); } ``` Found here: https://github.com/nomad-software/dunit/blob/7aabca699cbfe32581754b19a2b93d1b4178ebdc/source/dunit/toolkit.d#L474
Comment #1 by dlang-bot — 2022-05-10T11:03:16Z
@dkorpel created dlang/dmd pull request #14105 "Fix issue 23100 - empty array literal passed to scope param not 'fals…" fixing this issue: - Fix issue 23100 - empty array literal passed to scope param not 'falsey' anymore https://github.com/dlang/dmd/pull/14105
Comment #2 by dlang-bot — 2022-05-16T07:52:59Z
dlang/dmd pull request #14105 "Fix issue 23100 - empty array literal passed to scope param not 'fals…" was merged into stable: - 1fbbd277d3479a1b4b813b3e38c3fdc15900d446 by Dennis Korpel: Fix issue 23100 - empty array literal passed to scope param not 'falsey' anymore https://github.com/dlang/dmd/pull/14105
Comment #3 by dlang-bot — 2022-07-09T16:31:55Z
dlang/dmd pull request #14280 "merge stable" was merged into master: - 8ef32fa8af53bc709c1cbdeb1fbb47444da94e2b by Dennis: Fix issue 23100 - empty array literal passed to scope param not 'falsey' anymore (#14105) https://github.com/dlang/dmd/pull/14280