mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
all: replace all @Type usages
Co-authored-by: Matthew Lugg <mlugg@mlugg.co.uk>
This commit is contained in:
committed by
Matthew Lugg
parent
ce0df033cf
commit
dec1163fbb
@@ -1283,10 +1283,7 @@ test "Non-exhaustive enum backed by comptime_int" {
|
||||
test "matching captures causes enum equivalence" {
|
||||
const S = struct {
|
||||
fn Nonexhaustive(comptime I: type) type {
|
||||
const UTag = @Type(.{ .int = .{
|
||||
.signedness = .unsigned,
|
||||
.bits = @typeInfo(I).int.bits,
|
||||
} });
|
||||
const UTag = @Int(.unsigned, @typeInfo(I).int.bits);
|
||||
return enum(UTag) { _ };
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user