From 1f3d0646b6d970a591d9c29e895040f3a9ab8899 Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Thu, 20 Feb 2025 16:23:40 +0200 Subject: [PATCH] fix Enum.isAnonymous types --- src/aro/TypeStore.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aro/TypeStore.zig b/src/aro/TypeStore.zig index cd24cea5..1a4a1920 100644 --- a/src/aro/TypeStore.zig +++ b/src/aro/TypeStore.zig @@ -1633,10 +1633,10 @@ pub const Type = union(enum) { name_tok: TokenIndex, }; - pub fn isAnonymous(record: Record, comp: *const Compilation) bool { + pub fn isAnonymous(@"enum": Enum, comp: *const Compilation) bool { // anonymous enums can be recognized by their names which are in // the format "(anonymous TAG at path:line:col)". - return record.name.lookup(comp)[0] == '('; + return @"enum".name.lookup(comp)[0] == '('; } };