Skip to content

Commit

Permalink
fix Enum.isAnonymous types
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexu committed Feb 20, 2025
1 parent 2581622 commit 1f3d064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aro/TypeStore.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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] == '(';
}
};

Expand Down

0 comments on commit 1f3d064

Please sign in to comment.