| author | |
| committer | |
| log | 3aaf39424905801a4717df3e184c693f5373e09c |
| tree | 5caebaf9843de169cec45bc1e9a315808665d1a4 |
| parent | 8e074f1549779a5c19dccedfb379c53cd01914d3 |
| signature |
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" { |
| 405 | 405 | const SomeStruct = struct { array: [4]StructWithDefault }; |
| 406 | 406 | |
| 407 | 407 | const value1 = SomeStruct{ .array = .{StructWithDefault{}} ++ [_]StructWithDefault{.{}} ** 3 }; |
| 408 | const value2 = SomeStruct{ .array = .{.{}} ++ [_]StructWithDefault{.{}} ** 3 }; | |
| 408 | const value2 = SomeStruct{ .array = .{ .{}, .{}, .{}, .{} } }; | |
| 409 | 409 | |
| 410 | 410 | try expectEqual(value1, value2); |
| 411 | 411 | } |
test/cases/compile_errors/invalid_tuple_to_struct_coercion.zig+1-2| ... | ... | @@ -7,7 +7,6 @@ export fn entry() void { |
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | // error |
| 10 | // target=native | |
| 11 | 10 | // |
| 12 | // :6:31: error: no field named '0' in struct 'tmp.S' | |
| 11 | // :6:31: error: expected type 'tmp.S', found 'struct { comptime void = {} }' | |
| 13 | 12 | // :1:11: note: struct declared here |