conststd=@import("std");test"@intCast array to vector coercion"{vara:[2]i32=.{1,1};a[1]+=1;constb:@Vector(2,u32)=@intCast(a);trystd.testing.expect(b[0]==1);trystd.testing.expect(b[1]==2);}Should pass instead of:
test.zig:6:41: error: expected integer or vector, found '[2]i32'
const b: @Vector(2, u32) = @intCast(a);
^
```zig
const std = @import("std");
test "@intCast array to vector coercion" {
var a: [2]i32 = .{ 1, 1 };
a[1] += 1;
const b: @Vector(2, u32) = @intCast(a);
try std.testing.expect(b[0] == 1);
try std.testing.expect(b[1] == 2);
}
```
Should pass instead of:
```
test.zig:6:41: error: expected integer or vector, found '[2]i32'
const b: @Vector(2, u32) = @intCast(a);
^
```