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
This commit is contained in:
mlugg
2023-08-27 17:03:42 +01:00
committed by Andrew Kelley
parent c6024691cf
commit 8d036d1d78
4 changed files with 417 additions and 77 deletions

View File

@@ -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'