| ... | ... | @@ -3,10 +3,10 @@ const builtin = @import("builtin"); |
| 3 | 3 | const Target = @import("std").Target; |
| 4 | 4 | |
| 5 | 5 | pub fn addCases(cases: *tests.CompileErrorContext) void { |
| 6 | | cases.addTest("", |
| 6 | cases.addTest("access invalid @typeInfo decl", |
| 7 | 7 | \\const A = B; |
| 8 | 8 | \\test "Crash" { |
| 9 | | \\ _ = @typeInfo(@This()).Struct.decls; |
| 9 | \\ _ = @typeInfo(@This()).Struct.decls[0]; |
| 10 | 10 | \\} |
| 11 | 11 | , &[_][]const u8{ |
| 12 | 12 | "tmp.zig:1:11: error: use of undeclared identifier 'B'", |