zig/test/behavior/bugs/12430.zig
2022-08-13 09:22:25 +03:00

12 lines
220 B
Zig

const std = @import("std");
test {
const T = comptime b: {
break :b @Type(.{ .Int = .{
.signedness = .unsigned,
.bits = 8,
} });
};
try std.testing.expect(T == u8);
}