Zig Version
0.16.0-dev.1503+738d2be9d
Steps to Reproduce and Observed Output
// a.zigcomptime{_=@Vector(1,u0){0}++@Vector(1,u0){0};}$ zig build-lib a.zig
a.zig:4:23: error: expected indexable; found '@Vector(1, u0)'
_ = @Vector(1, u0){0} ++ @Vector(1, u0){0};
~~~~~~~~~~~~~~^~~
# reference trace excluded...
Expected Output
Either:
- Successful compile, with the discarded value in the example above being
@Vector(2, u0){0, 0}.- This seems like the more logical option, since vectors are indexable. They also implicitly cast to arrays, which can be concatenated.
- Change the error message to something like
expected array, slice, or initializer list, found ....
### Zig Version
0.16.0-dev.1503+738d2be9d
### Steps to Reproduce and Observed Output
```zig
// a.zig
comptime {
_ = @Vector(1, u0){0} ++ @Vector(1, u0){0};
}
```
```sh
$ zig build-lib a.zig
a.zig:4:23: error: expected indexable; found '@Vector(1, u0)'
_ = @Vector(1, u0){0} ++ @Vector(1, u0){0};
~~~~~~~~~~~~~~^~~
# reference trace excluded...
```
### Expected Output
Either:
1. Successful compile, with the discarded value in the example above being `@Vector(2, u0){0, 0}`.
- This seems like the more logical option, since vectors *are* indexable. They also implicitly cast to arrays, which can be concatenated.
2. Change the error message to something like `expected array, slice, or initializer list, found ...`.