diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2023-08-27 17:03:42 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-08-28 12:32:02 -0700 |
| commit | 8d036d1d78bd6db5fd39b30c6182196c1e49a3db (patch) | |
| tree | ae65a34daabcc80a7b1faf04918fd8fb9ead2565 /test/cases/compile_errors/invalid_float_casts.zig | |
| parent | c6024691cfc3fa329cf1b7ac9fcb0855b7211aa0 (diff) | |
| download | zig-8d036d1d78bd6db5fd39b30c6182196c1e49a3db.tar.gz zig-8d036d1d78bd6db5fd39b30c6182196c1e49a3db.zip | |
Sema: allow cast builtins on vectors
The following cast builtins did not previously work on vectors, and have
been made to:
* `@floatCast`
* `@ptrFromInt`
* `@intFromPtr`
* `@floatFromInt`
* `@intFromFloat`
* `@intFromBool`
Resolves: #16267
Diffstat (limited to 'test/cases/compile_errors/invalid_float_casts.zig')
| -rw-r--r-- | test/cases/compile_errors/invalid_float_casts.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cases/compile_errors/invalid_float_casts.zig b/test/cases/compile_errors/invalid_float_casts.zig index 789eb10976..2b09c722be 100644 --- a/test/cases/compile_errors/invalid_float_casts.zig +++ b/test/cases/compile_errors/invalid_float_casts.zig @@ -22,4 +22,4 @@ export fn qux() void { // :3:40: error: unable to cast runtime value to 'comptime_float' // :7:18: error: expected integer type, found 'f32' // :11:32: error: expected integer type, found 'f32' -// :15:29: error: expected float type, found 'u32' +// :15:29: error: expected float or vector type, found 'u32' |
