| author | |
| committer | |
| log | fda0b2c372c3e9ecc348a9cc4afc4e7afd966427 |
| tree | 787c35e908fdd9397e741eff09f3e2d1a81c5a66 |
| parent | 295451dfe5f22e0bea63e737554326889af1fb13 |
1 files changed, 1 insertions(+), 0 deletions(-)
lib/std/testing.zig+1| ... | ... | @@ -730,6 +730,7 @@ pub fn refAllDecls(comptime T: type) void { |
| 730 | 730 | /// Given a type, and Recursively reference all the declarations inside, so that the semantic analyzer sees them. |
| 731 | 731 | /// For deep types, you may use `@setEvalBranchQuota` |
| 732 | 732 | pub fn refAllDeclsRecursive(comptime T: type) void { |
| 733 | if (!builtin.is_test) return; | |
| 733 | 734 | inline for (comptime std.meta.declarations(T)) |decl| { |
| 734 | 735 | if (decl.is_pub) { |
| 735 | 736 | if (@TypeOf(@field(T, decl.name)) == type) { |