diff --git a/src/Generator/Types/CppTypePrinter.cs b/src/Generator/Types/CppTypePrinter.cs index f31ebf21..a7adc3ac 100644 --- a/src/Generator/Types/CppTypePrinter.cs +++ b/src/Generator/Types/CppTypePrinter.cs @@ -93,12 +93,7 @@ namespace Cxxi.Types public string VisitTypedefType(TypedefType typedef, TypeQualifiers quals) { - var decl = typedef.Declaration; - - if (decl.Type == null) - return string.Empty; - - return decl.Type.Visit(this); + return "::" + typedef.Declaration.QualifiedOriginalName; } public string VisitTemplateSpecializationType(TemplateSpecializationType template, TypeQualifiers quals)