authorgravatar for me@tadeo.caTadeo Kondrak <me@tadeo.ca> 2020-08-19 15:26:03-06:00
committergravatar for me@tadeo.caTadeo Kondrak <me@tadeo.ca> 2020-08-19 15:26:03-06:00
log759485cc328a4e6f2aba58891e86234c660797b6
tree693140d5bb79d941c67e93976f243cda6beccb6d
parentb46d764fd958d31a988d58a6ee0b7da4c0b20acb
signaturelock-open Commit is signed but in an unrecognized format.

Update compile-errors test for @Type(.Struct)


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

test/compile_errors.zig+3-3
...@@ -1395,12 +1395,12 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {...@@ -1395,12 +1395,12 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
1395 "tmp.zig:3:36: error: expected type 'std.builtin.TypeInfo', found 'std.builtin.Int'",1395 "tmp.zig:3:36: error: expected type 'std.builtin.TypeInfo', found 'std.builtin.Int'",
1396 });1396 });
13971397
1398 cases.add("Struct unavailable for @Type",1398 cases.add("struct with declarations unavailable for @Type",
1399 \\export fn entry() void {1399 \\export fn entry() void {
1400 \\ _ = @Type(@typeInfo(struct { }));1400 \\ _ = @Type(@typeInfo(struct { const foo = 1; }));
1401 \\}1401 \\}
1402 , &[_][]const u8{1402 , &[_][]const u8{
1403 "tmp.zig:2:15: error: @Type not available for 'TypeInfo.Struct'",1403 "tmp.zig:2:15: error: TypeInfo.Struct.decls must be empty for @Type",
1404 });1404 });
14051405
1406 cases.add("wrong type for argument tuple to @asyncCall",1406 cases.add("wrong type for argument tuple to @asyncCall",