Thanks to @zillemarco for coming up with the test case.
@ -355,6 +355,10 @@ namespace CppSharp.Generators.CSharp
template.Arguments.All(IsValid))
return $@"{VisitDeclaration(decl)}<{string.Join(", ",
template.Arguments.Select(VisitTemplateArgument))}>";
if (ContextKind == TypePrinterContextKind.Native)
return template.Desugared.Visit(this);
return decl.Visit(this);
}
@ -1402,3 +1402,13 @@ union
} Share;
} Smb2;
} ProtocolSpecific;
template<class _Other>
using UsingTemplatePtr = _Other *;
struct TemplateWithUsingTemplateMember
{
UsingTemplatePtr<TemplateWithUsingTemplateMember> _Ref;
};