[Issue 15889] Array bounds check should report index and length
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 4 01:33:54 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=15889
mipri <mipri at minimaltype.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |mipri at minimaltype.com
Resolution|FIXED |---
--- Comment #4 from mipri <mipri at minimaltype.com> ---
The new error message has an absurd case:
```d
unittest {
string s1 = "hi";
char[5] s2;
s2 = s1;
}
```
core.exception.ArrayIndexError at length.d(4): index [2] exceeds array of length 5
--
More information about the Digitalmars-d-bugs
mailing list