| author | |
| committer | |
| log | 14590e956e06903ac408af57874d3b5a0d697670 |
| tree | 97c267222ad698b7ac90bf9edc1a58a03c84f408 |
| parent | 95f6a5935a675efe6d30bc2388e7a0bc6b742c6d |
1 files changed, 7 insertions(+), 2 deletions(-)
test/cases/compile_errors/comptime_try_non_error.zig+7-2| ... | ... | @@ -1,4 +1,8 @@ |
| 1 | export fn foo() void { | |
| 1 | comptime { | |
| 2 | foo(); | |
| 3 | } | |
| 4 | ||
| 5 | fn foo() void { | |
| 2 | 6 | try bar(); |
| 3 | 7 | } |
| 4 | 8 | |
| ... | ... | @@ -10,4 +14,5 @@ pub fn bar() u8 { |
| 10 | 14 | // backend=stage2 |
| 11 | 15 | // target=native |
| 12 | 16 | // |
| 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 |