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