| ... | @@ -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 | }); |
| 1397 | | 1397 | |
| 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 | }); |
| 1405 | | 1405 | |
| 1406 | cases.add("wrong type for argument tuple to @asyncCall", | 1406 | cases.add("wrong type for argument tuple to @asyncCall", |