authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-11-21 12:38:35+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-11-21 14:03:49-08:00
loga2e95546995b126464728ecd2075ee93565005bf
tree8f32dc38076bb777419e76843d0e11f19838866a
parent7dcda5b0e8b2a6e001c4fa29d748cd093ca57436

std: Add test for meta.declarations on opaque{}


1 files changed, 4 insertions(+), 0 deletions(-)

lib/std/meta.zig+4
......@@ -280,11 +280,15 @@ test "std.meta.declarations" {
280280
281281 fn a() void {}
282282 };
283 const O1 = opaque {
284 fn a() void {}
285 };
283286
284287 const decls = comptime [_][]const TypeInfo.Declaration{
285288 declarations(E1),
286289 declarations(S1),
287290 declarations(U1),
291 declarations(O1),
288292 };
289293
290294 inline for (decls) |decl| {