| author | |
| committer | |
| log | c4840d78fb0a1a5018e5d66cb7c5e76a080783c2 |
| tree | 02851169179420373f8e9576104c2e25dd9a9d57 |
| parent | 1098545e475d0147d3f8b3031ed116be25c8e2bf |
1 files changed, 5 insertions(+), 0 deletions(-)
test/compile_errors.zig+5| ... | ... | @@ -1,6 +1,11 @@ |
| 1 | 1 | const tests = @import("tests.zig"); |
| 2 | 2 | |
| 3 | 3 | pub fn addCases(cases: &tests.CompileErrorContext) void { |
| 4 | cases.add("invalid field access in comptime", | |
| 5 | \\comptime { var x = doesnt_exist.whatever; } | |
| 6 | , | |
| 7 | ".tmp_source.zig:1:20: error: use of undeclared identifier 'doesnt_exist'"); | |
| 8 | ||
| 4 | 9 | cases.add("suspend inside suspend block", |
| 5 | 10 | \\const std = @import("std"); |
| 6 | 11 | \\ |