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

@@ -8,6 +8,7 @@ export fn f() void {
export fn g() void {
var a: A = undefined;
const y = a.bar;
_ = &a;
_ = y;
}
export fn e() void {
@@ -26,5 +27,5 @@ export fn e() void {
// :1:11: note: struct declared here
// :10:17: error: no field named 'bar' in struct 'tmp.A'
// :1:11: note: struct declared here
// :18:45: error: no field named 'f' in struct 'tmp.e.B'
// :14:15: note: struct declared here
// :19:45: error: no field named 'f' in struct 'tmp.e.B'
// :15:15: note: struct declared here