Skip to content

Commit

Permalink
Fixed debugging printing when type printing delegate is not initialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Jul 14, 2023
1 parent 8c1fa18 commit 9f3ce76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AST/Type.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public abstract T Visit<T>(ITypeVisitor<T> visitor, TypeQualifiers quals

public override string ToString()
{
return TypePrinterDelegate(this);
return TypePrinterDelegate == null ? base.ToString() : TypePrinterDelegate(this);
}

public abstract object Clone();
Expand Down

0 comments on commit 9f3ce76

Please sign in to comment.