authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-06-18 04:55:39+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-06-18 04:55:39+01:00
log6a8cf25a8aea11ef80b48c9bce59d0aafcff3297
tree2f3c4cf8021ac481d406a8704d3f27f3c59cffad
parent75395c99c5be28987670dcc8383cec3b38b5a83f
signaturelock-open Commit is signed but in an unrecognized format.

cases: un-regress some notes

Since we now have source locations for reified types again, some error notes have returned which were previously regressed by this branch.

5 files changed, 8 insertions(+), 0 deletions(-)

test/cases/compile_errors/comptime_arg_to_generic_fn_callee_error.zig+1
......@@ -18,3 +18,4 @@ pub export fn entry() void {
1818// target=native
1919//
2020// :7:28: error: no field named 'c' in enum 'meta.FieldEnum(tmp.MyStruct)'
21// :?:?: note: enum declared here
test/cases/compile_errors/reify_type_for_tagged_union_with_extra_enum_field.zig+2
......@@ -31,3 +31,5 @@ export fn entry() void {
3131// target=native
3232//
3333// :13:16: error: enum fields missing in union
34// :1:13: note: field 'arst' missing, declared here
35// :1:13: note: enum declared here
test/cases/compile_errors/reify_type_for_tagged_union_with_extra_union_field.zig+1
......@@ -31,3 +31,4 @@ export fn entry() void {
3131// target=native
3232//
3333// :12:16: error: no field named 'arst' in enum 'tmp.Tag'
34// :1:13: note: enum declared here
test/cases/compile_errors/reify_type_for_tagged_union_with_no_enum_fields.zig+1
......@@ -27,3 +27,4 @@ export fn entry() void {
2727// target=native
2828//
2929// :9:16: error: no field named 'signed' in enum 'tmp.Tag'
30// :1:13: note: enum declared here
test/cases/compile_errors/reify_type_for_tagged_union_with_no_union_fields.zig+3
......@@ -27,3 +27,6 @@ export fn entry() void {
2727// target=native
2828//
2929// :12:16: error: enum fields missing in union
30// :1:13: note: field 'signed' missing, declared here
31// :1:13: note: field 'unsigned' missing, declared here
32// :1:13: note: enum declared here