mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
std: Add test for meta.declarations on opaque{}
This commit is contained in:
parent
7dcda5b0e8
commit
a2e9554699
@ -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| {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user