test: remove dependencies on legacy coercion
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user