test: update cases to silence 'var is never mutated' errors

This commit is contained in:
mlugg
2023-11-11 07:27:31 +00:00
parent 2c1acb6180
commit 21fa187abc
289 changed files with 671 additions and 489 deletions

View File

@@ -1,20 +1,20 @@
comptime {
var a = "foo";
const a = "foo";
if (a == "foo") unreachable;
}
comptime {
var a = "foo";
const a = "foo";
if (a == ("foo")) unreachable; // intentionally allow
}
comptime {
var a = "foo";
const a = "foo";
switch (a) {
"foo" => unreachable,
else => {},
}
}
comptime {
var a = "foo";
const a = "foo";
switch (a) {
("foo") => unreachable, // intentionally allow
else => {},