diff --git a/src/AST/Type.cs b/src/AST/Type.cs index 831b9f677..d686f5d9a 100644 --- a/src/AST/Type.cs +++ b/src/AST/Type.cs @@ -30,7 +30,7 @@ public abstract T Visit(ITypeVisitor visitor, TypeQualifiers quals public override string ToString() { - return TypePrinterDelegate(this); + return TypePrinterDelegate == null ? base.ToString() : TypePrinterDelegate(this); } public abstract object Clone();