[Issue 24355] Slice copy with static arrays incorrect bounds checking

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 25 20:51:18 UTC 2024


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

--- Comment #2 from ryuukk_ <ryuukk.dev at gmail.com> ---
I expect the same as:

```
void main()
{
    char[32] id = "hello";
}
```



left: static array
right: slice

result: slice -> copy -> [0 .. slice.length]

--


More information about the Digitalmars-d-bugs mailing list