Skip to content

Commit 9f3ce76

Browse files
committed
Fixed debugging printing when type printing delegate is not initialized.
1 parent 8c1fa18 commit 9f3ce76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AST/Type.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public abstract T Visit<T>(ITypeVisitor<T> visitor, TypeQualifiers quals
3030

3131
public override string ToString()
3232
{
33-
return TypePrinterDelegate(this);
33+
return TypePrinterDelegate == null ? base.ToString() : TypePrinterDelegate(this);
3434
}
3535

3636
public abstract object Clone();

0 commit comments

Comments
 (0)