diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2024-08-28 18:35:37 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2024-08-29 23:43:52 +0100 |
| commit | 605f2a0978c3ae262e224ff01d163d412a64c284 (patch) | |
| tree | 5dbe00111ee2269e7dc345d30492d1197bc383bd /test/cases/function_redeclaration.zig | |
| parent | c62487da76b08a0dfb69fbf76501250ca065c140 (diff) | |
| download | zig-605f2a0978c3ae262e224ff01d163d412a64c284.tar.gz zig-605f2a0978c3ae262e224ff01d163d412a64c284.zip | |
cases: update for new error wording, add coverage for field/decl name conflict
Diffstat (limited to 'test/cases/function_redeclaration.zig')
| -rw-r--r-- | test/cases/function_redeclaration.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/cases/function_redeclaration.zig b/test/cases/function_redeclaration.zig index b6cbf664a9..2b8dc4c15d 100644 --- a/test/cases/function_redeclaration.zig +++ b/test/cases/function_redeclaration.zig @@ -8,7 +8,8 @@ fn foo() void { // error // -// :3:1: error: redeclaration of 'entry' -// :2:1: note: other declaration here +// :2:4: error: duplicate struct member name 'entry' +// :3:4: note: duplicate name here +// :2:1: note: struct declared here // :6:9: error: local variable shadows declaration of 'foo' // :5:1: note: declared here |
