mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 16:24:51 +00:00
std.meta: remove TagType (deprecated in 0.9)
Followup to 902df103c6151c257c90de9ba5f29f7f4b9dbea2. Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
This commit is contained in:
parent
d04a262a3d
commit
e92dab14f9
@ -711,8 +711,6 @@ test "std.meta.DeclEnum" {
|
||||
try expectEqualEnum(enum { a, b, c }, DeclEnum(C));
|
||||
}
|
||||
|
||||
pub const TagType = @compileError("deprecated; use Tag");
|
||||
|
||||
pub fn Tag(comptime T: type) type {
|
||||
return switch (@typeInfo(T)) {
|
||||
.Enum => |info| info.tag_type,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user