authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-02-25 16:27:43+00:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-02-26 00:17:09+00:00
log3aaf39424905801a4717df3e184c693f5373e09c
tree5caebaf9843de169cec45bc1e9a315808665d1a4
parent8e074f1549779a5c19dccedfb379c53cd01914d3
signaturelock-open Commit is signed but in an unrecognized format.

test: remove dependencies on legacy coercion


2 files changed, 2 insertions(+), 3 deletions(-)

test/behavior/tuple.zig+1-1
......@@ -405,7 +405,7 @@ test "tuple of struct concatenation and coercion to array" {
405405 const SomeStruct = struct { array: [4]StructWithDefault };
406406
407407 const value1 = SomeStruct{ .array = .{StructWithDefault{}} ++ [_]StructWithDefault{.{}} ** 3 };
408 const value2 = SomeStruct{ .array = .{.{}} ++ [_]StructWithDefault{.{}} ** 3 };
408 const value2 = SomeStruct{ .array = .{ .{}, .{}, .{}, .{} } };
409409
410410 try expectEqual(value1, value2);
411411}
test/cases/compile_errors/invalid_tuple_to_struct_coercion.zig+1-2
......@@ -7,7 +7,6 @@ export fn entry() void {
77}
88
99// error
10// target=native
1110//
12// :6:31: error: no field named '0' in struct 'tmp.S'
11// :6:31: error: expected type 'tmp.S', found 'struct { comptime void = {} }'
1312// :1:11: note: struct declared here