Sema: add missing error and test for bool not on vector of ints
This commit is contained in:
@@ -10,4 +10,4 @@ export fn entry() usize {
|
||||
// backend=stage2
|
||||
// target=native
|
||||
//
|
||||
// :3:60: error: unable to perform binary not operation on type 'comptime_int'
|
||||
// :3:61: error: bitwise not operation on type 'comptime_int'
|
||||
|
||||
10
test/cases/compile_errors/bool_not_on_vector_of_ints.zig
Normal file
10
test/cases/compile_errors/bool_not_on_vector_of_ints.zig
Normal file
@@ -0,0 +1,10 @@
|
||||
export fn foo() void {
|
||||
var x: @Vector(2, u1) = .{ 0, 1 };
|
||||
x = !x;
|
||||
}
|
||||
|
||||
// error
|
||||
// backend=stage2
|
||||
// target=native
|
||||
//
|
||||
// :3:10: error: boolean not operation on type '@Vector(2, u1)'
|
||||
Reference in New Issue
Block a user