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
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user