diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-04-29 20:33:29 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-04-29 20:33:29 -0700 |
| commit | 474ade88b58b6fd7239049ec445129eabafa3cbd (patch) | |
| tree | d7d27c3812dfaf85be4d6aa98b3b31aae1054a6b /lib/std/meta | |
| parent | 8944240aec6b53106856bb0ac2eb9da180f6b326 (diff) | |
| download | zig-474ade88b58b6fd7239049ec445129eabafa3cbd.tar.gz zig-474ade88b58b6fd7239049ec445129eabafa3cbd.zip | |
std: fix compile errors found by stage2 AstGen
Diffstat (limited to 'lib/std/meta')
| -rw-r--r-- | lib/std/meta/trait.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/meta/trait.zig b/lib/std/meta/trait.zig index 481bfe212b..d9eb886c10 100644 --- a/lib/std/meta/trait.zig +++ b/lib/std/meta/trait.zig @@ -497,8 +497,8 @@ pub fn hasDecls(comptime T: type, comptime names: anytype) bool { test "std.meta.trait.hasDecls" { const TestStruct1 = struct {}; const TestStruct2 = struct { - pub var a: u32; - pub var b: u32; + pub var a: u32 = undefined; + pub var b: u32 = undefined; c: bool, pub fn useless() void {} }; |
