diff options
| author | LemonBoy <thatlemon@gmail.com> | 2020-11-21 12:38:35 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-11-21 14:03:49 -0800 |
| commit | a2e95546995b126464728ecd2075ee93565005bf (patch) | |
| tree | 8f32dc38076bb777419e76843d0e11f19838866a /lib/std/meta.zig | |
| parent | 7dcda5b0e8b2a6e001c4fa29d748cd093ca57436 (diff) | |
| download | zig-a2e95546995b126464728ecd2075ee93565005bf.tar.gz zig-a2e95546995b126464728ecd2075ee93565005bf.zip | |
std: Add test for meta.declarations on opaque{}
Diffstat (limited to 'lib/std/meta.zig')
| -rw-r--r-- | lib/std/meta.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/meta.zig b/lib/std/meta.zig index 23bcf10a59..c950966710 100644 --- a/lib/std/meta.zig +++ b/lib/std/meta.zig @@ -280,11 +280,15 @@ test "std.meta.declarations" { fn a() void {} }; + const O1 = opaque { + fn a() void {} + }; const decls = comptime [_][]const TypeInfo.Declaration{ declarations(E1), declarations(S1), declarations(U1), + declarations(O1), }; inline for (decls) |decl| { |
