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
No known key found for this signature in database
GPG key ID: 3F5B7DCCBF4AF02E
108 changed files with 629 additions and 1891 deletions

View file

@ -11,7 +11,7 @@ pub const std_options: std.Options = .{
fn myLogFn(
comptime level: std.log.Level,
comptime scope: @Type(.enum_literal),
comptime scope: @EnumLiteral(),
comptime format: []const u8,
args: anytype,
) void {

View file

@ -41,7 +41,7 @@ test "coercion between unions and enums" {
try expect(u_4.tag() == 1);
// The following example is invalid.
// error: coercion from enum '@TypeOf(.enum_literal)' to union 'test_coerce_unions_enum.U2' must initialize 'f32' field 'b'
// error: coercion from enum '@EnumLiteral()' to union 'test_coerce_unions_enum.U2' must initialize 'f32' field 'b'
//var u_5: U2 = .b;
//try expect(u_5.tag() == 2);
}