Skip to content

Commit

Permalink
fix bug in object type ref resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
Stepami committed Oct 11, 2023
1 parent b73cc7d commit cc75ea2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Interpreter.Lib/IR/CheckSemantics/Types/ObjectType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ public override void ResolveReference(
ISet<Type> visited = null)
{
visited ??= new HashSet<Type>();
if (visited.Contains(reference))
if (visited.Contains(this))
return;

visited.Add(reference);
visited.Add(this);

foreach (var key in Keys)
if (refId == this[key])
Expand Down

0 comments on commit cc75ea2

Please sign in to comment.