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");
33const Target = @import("std").Target;
44
55pub fn addCases(cases: *tests.CompileErrorContext) void {
6 cases.addTest("",
6 cases.addTest("access invalid @typeInfo decl",
77 \\const A = B;
88 \\test "Crash" {
9 \\ _ = @typeInfo(@This()).Struct.decls;
9 \\ _ = @typeInfo(@This()).Struct.decls[0];
1010 \\}
1111 , &[_][]const u8{
1212 "tmp.zig:1:11: error: use of undeclared identifier 'B'",