authorgravatar for mail@isaacfreund.comIsaac Freund <mail@isaacfreund.com> 2020-11-19 23:32:22+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-11-19 15:04:38-08:00
loga5691ee363c025775f9f7f3a59cb31503068add2
tree67a2c82ae958e20a8ba676c2b01ad1b0dfa6ef48
parent473cb1fd74d6d478bb3d5fda4707ce3f6e6e5bf6

std.meta.declarations: support opaque {}


1 files changed, 2 insertions(+), 1 deletions(-)

lib/std/meta.zig+2-1
...@@ -261,7 +261,8 @@ pub fn declarations(comptime T: type) []const TypeInfo.Declaration {...@@ -261,7 +261,8 @@ pub fn declarations(comptime T: type) []const TypeInfo.Declaration {
261 .Struct => |info| info.decls,261 .Struct => |info| info.decls,
262 .Enum => |info| info.decls,262 .Enum => |info| info.decls,
263 .Union => |info| info.decls,263 .Union => |info| info.decls,
264 else => @compileError("Expected struct, enum or union type, found '" ++ @typeName(T) ++ "'"),264 .Opaque => |info| info.decls,
265 else => @compileError("Expected struct, enum, union, or opaque type, found '" ++ @typeName(T) ++ "'"),
265 };266 };
266}267}
267268