test: remove dependencies on legacy coercion

This commit is contained in:
mlugg
2025-02-25 16:27:43 +00:00
parent 8e074f1549
commit 3aaf394249
2 changed files with 2 additions and 3 deletions

View File

@@ -405,7 +405,7 @@ test "tuple of struct concatenation and coercion to array" {
const SomeStruct = struct { array: [4]StructWithDefault };
const value1 = SomeStruct{ .array = .{StructWithDefault{}} ++ [_]StructWithDefault{.{}} ** 3 };
const value2 = SomeStruct{ .array = .{.{}} ++ [_]StructWithDefault{.{}} ** 3 };
const value2 = SomeStruct{ .array = .{ .{}, .{}, .{}, .{} } };
try expectEqual(value1, value2);
}

View File

@@ -7,7 +7,6 @@ export fn entry() void {
}
// error
// target=native
//
// :6:31: error: no field named '0' in struct 'tmp.S'
// :6:31: error: expected type 'tmp.S', found 'struct { comptime void = {} }'
// :1:11: note: struct declared here