authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2023-03-09 15:35:54+00:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-03-09 23:25:38+02:00
log14590e956e06903ac408af57874d3b5a0d697670
tree97c267222ad698b7ac90bf9edc1a58a03c84f408
parent95f6a5935a675efe6d30bc2388e7a0bc6b742c6d

Fix test case added in 6d7fb8f


1 files changed, 7 insertions(+), 2 deletions(-)

test/cases/compile_errors/comptime_try_non_error.zig+7-2
......@@ -1,4 +1,8 @@
1export fn foo() void {
1comptime {
2 foo();
3}
4
5fn foo() void {
26 try bar();
37}
48
......@@ -10,4 +14,5 @@ pub fn bar() u8 {
1014// backend=stage2
1115// target=native
1216//
13// :2:12: error: expected error union type, found 'u8'
17// :6:12: error: expected error union type, found 'u8'
18// :2:8: note: called from here