| ... | @@ -466,8 +466,6 @@ test { | ... | @@ -466,8 +466,6 @@ test { |
| 466 | pub fn refAllDecls(comptime T: type) void { | 466 | pub fn refAllDecls(comptime T: type) void { |
| 467 | if (!builtin.is_test) return; | 467 | if (!builtin.is_test) return; |
| 468 | inline for (comptime std.meta.declarations(T)) |decl| { | 468 | inline for (comptime std.meta.declarations(T)) |decl| { |
| 469 | if (decl.is_pub and @typeInfo(@TypeOf(@field(T, decl.name))) == .Struct) | 469 | if (decl.is_pub) _ = @field(T, decl.name); |
| 470 | _ = @hasDecl(@field(T, decl.name), "foo"); | | |
| 471 | _ = decl; | | |
| 472 | } | 470 | } |
| 473 | } | 471 | } |