When assigning to slice, slice operator is required.
However when assigning to static array compiler silently allows it, which can lead to bugs.
This behavior should be consistent between slices and static arrays.
```
ubyte[] slice;
slice[] = 2; // ok
slice = 2; // error as expected
ubyte[2] array;
array[] = 2; // ok
array = 2; // doesn't error, works as `array[] = 2`
```
Comment #1 by nick — 2022-09-03T08:05:36Z
I assume static array initialization should still be allowed from a single element? Otherwise the fix is not so trivial for an immutable static array.
Comment #2 by robert.schadek — 2024-12-13T19:13:13Z