std.meta.declarations: support opaque {}
This commit is contained in:
parent
473cb1fd74
commit
a5691ee363
@ -261,7 +261,8 @@ pub fn declarations(comptime T: type) []const TypeInfo.Declaration {
|
||||
.Struct => |info| info.decls,
|
||||
.Enum => |info| info.decls,
|
||||
.Union => |info| info.decls,
|
||||
else => @compileError("Expected struct, enum or union type, found '" ++ @typeName(T) ++ "'"),
|
||||
.Opaque => |info| info.decls,
|
||||
else => @compileError("Expected struct, enum, union, or opaque type, found '" ++ @typeName(T) ++ "'"),
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user