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

This commit is contained in:
LemonBoy 2020-11-21 12:38:35 +01:00 committed by Andrew Kelley
parent 7dcda5b0e8
commit a2e9554699

View File

@ -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| {