| ... | @@ -730,6 +730,7 @@ pub fn refAllDecls(comptime T: type) void { | ... | @@ -730,6 +730,7 @@ pub fn refAllDecls(comptime T: type) void { |
| 730 | /// Given a type, and Recursively reference all the declarations inside, so that the semantic analyzer sees them. | 730 | /// Given a type, and Recursively reference all the declarations inside, so that the semantic analyzer sees them. |
| 731 | /// For deep types, you may use `@setEvalBranchQuota` | 731 | /// For deep types, you may use `@setEvalBranchQuota` |
| 732 | pub fn refAllDeclsRecursive(comptime T: type) void { | 732 | pub fn refAllDeclsRecursive(comptime T: type) void { |
| | 733 | if (!builtin.is_test) return; |
| 733 | inline for (comptime std.meta.declarations(T)) |decl| { | 734 | inline for (comptime std.meta.declarations(T)) |decl| { |
| 734 | if (decl.is_pub) { | 735 | if (decl.is_pub) { |
| 735 | if (@TypeOf(@field(T, decl.name)) == type) { | 736 | if (@TypeOf(@field(T, decl.name)) == type) { |