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.
This commit is contained in:
mlugg 2024-06-18 04:55:39 +01:00
parent 75395c99c5
commit 6a8cf25a8a
No known key found for this signature in database
GPG Key ID: 3F5B7DCCBF4AF02E
5 changed files with 8 additions and 0 deletions

View File

@ -18,3 +18,4 @@ pub export fn entry() void {
// target=native
//
// :7:28: error: no field named 'c' in enum 'meta.FieldEnum(tmp.MyStruct)'
// :?:?: note: enum declared here

View File

@ -31,3 +31,5 @@ export fn entry() void {
// target=native
//
// :13:16: error: enum fields missing in union
// :1:13: note: field 'arst' missing, declared here
// :1:13: note: enum declared here

View File

@ -31,3 +31,4 @@ export fn entry() void {
// target=native
//
// :12:16: error: no field named 'arst' in enum 'tmp.Tag'
// :1:13: note: enum declared here

View File

@ -27,3 +27,4 @@ export fn entry() void {
// target=native
//
// :9:16: error: no field named 'signed' in enum 'tmp.Tag'
// :1:13: note: enum declared here

View File

@ -27,3 +27,6 @@ export fn entry() void {
// target=native
//
// :12:16: error: enum fields missing in union
// :1:13: note: field 'signed' missing, declared here
// :1:13: note: field 'unsigned' missing, declared here
// :1:13: note: enum declared here