| author | |
| committer | |
| log | c040c0f45a2940dfa71fd9e835f815207931b6a9 |
| tree | 1d08af11c1f0e601a8b0710b025fa8b827fb295e |
| parent | 7213234f0c5188422540d5aa3a80984c2cd54581 |
Closes #117701 files changed, 13 insertions(+), 0 deletions(-)
test/cases/compile_errors/@intCast_on_vec.zig created+13| ... | ... | @@ -0,0 +1,13 @@ |
| 1 | export fn entry() void { | |
| 2 | const a = @Vector(4, u32){ 1, 1, 1, 1 }; | |
| 3 | _ = @as(u32, @intCast(a)); | |
| 4 | } | |
| 5 | ||
| 6 | // TODO: change target in the manifest to "native" probably after this is fixed: | |
| 7 | // https://github.com/ziglang/zig/issues/13782 | |
| 8 | ||
| 9 | // error | |
| 10 | // backend=stage2 | |
| 11 | // target=x86_64-linux | |
| 12 | // | |
| 13 | // :3:27: error: expected type 'u32', found '@Vector(4, u32)' |