authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-18 18:27:18-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-18 18:27:18-05:00
log30194f27fb5521b11442f1d13474eac3915051d7
tree0f5ca27a04c354639a61c65c6acb7e867fb0c5bf
parenteb5e6259aa21774e3dffba9518a94cb904285f8a
signaturelock-open Commit is signed but in an unrecognized format.

update new test case to take into account lazy `@typeInfo`


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

test/compile_errors.zig+2-2
...@@ -3,10 +3,10 @@ const builtin = @import("builtin");...@@ -3,10 +3,10 @@ const builtin = @import("builtin");
3const Target = @import("std").Target;3const Target = @import("std").Target;
44
5pub fn addCases(cases: *tests.CompileErrorContext) void {5pub 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'",