all: replace all @Type usages

Co-authored-by: Matthew Lugg <mlugg@mlugg.co.uk>
This commit is contained in:
Ali Cheraghi
2025-04-30 18:42:23 +03:30
committed by Matthew Lugg
parent ce0df033cf
commit dec1163fbb
108 changed files with 629 additions and 1891 deletions
+1 -4
View File
@@ -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) { _ };
}
};