builtin: init test_functions to empty slice to avoid coercing to undefined
1 files changed, 1 insertions(+), 1 deletions(-)
src
src/Builtin.zig+1-1
| ... | ... | @@ -218,7 +218,7 @@ pub fn append(opts: @This(), buffer: *std.ArrayList(u8)) Allocator.Error!void { |
| 218 | 218 | |
| 219 | 219 | if (opts.is_test) { |
| 220 | 220 | try buffer.appendSlice( |
| 221 | | \\pub var test_functions: []const std.builtin.TestFn = undefined; // overwritten later |
| 221 | \\pub var test_functions: []const std.builtin.TestFn = &.{}; // overwritten later |
| 222 | 222 | \\ |
| 223 | 223 | ); |
| 224 | 224 | } |