[Issue 23773] array length assignment in assert condition should error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 14 10:02:15 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23773

--- Comment #5 from RazvanN <razvan.nitu1305 at gmail.com> ---
Well, the compiler rewrites `a.length = i` to `_d_arraysetlengthT(a, i)` so
that's why the assert error is not caught.

--


More information about the Digitalmars-d-bugs mailing list