| author | |
| committer | |
| log | e1d8187028ec6df7fbf420d3e4b56da8bf3dcf0a |
| tree | 9015a77d9af47609af89a59e1a8b6a853c598dd8 |
| parent | e043fe474ffe07d1503c6cb70e01983b8d07a1ba |
| signature |
I changed an error messages and fixed a minor bug while implementing
this proposal, which led to a few compile error cases failing.3 files changed, 3 insertions(+), 3 deletions(-)
test/cases/compile_errors/reify_struct.zig+1-1| ... | ... | @@ -74,7 +74,7 @@ comptime { |
| 74 | 74 | // target=native |
| 75 | 75 | // |
| 76 | 76 | // :2:5: error: tuple cannot have non-numeric field 'foo' |
| 77 | // :16:5: error: tuple field 3 exceeds tuple field count | |
| 77 | // :16:5: error: tuple field name '3' does not match field index 0 | |
| 78 | 78 | // :30:5: error: comptime field without default initialization value |
| 79 | 79 | // :44:5: error: extern struct fields cannot be marked comptime |
| 80 | 80 | // :58:5: error: alignment in a packed struct field must be set to 0 |
test/cases/compile_errors/reify_type_for_tagged_union_with_extra_enum_field.zig+1-1| ... | ... | @@ -30,6 +30,6 @@ export fn entry() void { |
| 30 | 30 | // backend=stage2 |
| 31 | 31 | // target=native |
| 32 | 32 | // |
| 33 | // :13:16: error: enum field(s) missing in union | |
| 33 | // :13:16: error: enum fields missing in union | |
| 34 | 34 | // :1:13: note: field 'arst' missing, declared here |
| 35 | 35 | // :1:13: note: enum declared here |
test/cases/compile_errors/reify_type_for_tagged_union_with_no_union_fields.zig+1-1| ... | ... | @@ -26,7 +26,7 @@ export fn entry() void { |
| 26 | 26 | // backend=stage2 |
| 27 | 27 | // target=native |
| 28 | 28 | // |
| 29 | // :12:16: error: enum field(s) missing in union | |
| 29 | // :12:16: error: enum fields missing in union | |
| 30 | 30 | // :1:13: note: field 'signed' missing, declared here |
| 31 | 31 | // :1:13: note: field 'unsigned' missing, declared here |
| 32 | 32 | // :1:13: note: enum declared here |