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
+2 -5
View File
@@ -1264,12 +1264,9 @@ test "reference to inferred local variable works as expected" {
try expect(crasher_local.lets_crash != a.lets_crash);
}
test "@Type returned from block" {
test "@Int returned from block" {
const T = comptime b: {
break :b @Type(.{ .int = .{
.signedness = .unsigned,
.bits = 8,
} });
break :b @Int(.unsigned, 8);
};
try std.testing.expect(T == u8);
}