Browse Source

Fix crash on auto return types

Not sure if this is resolved properly
pull/1898/head
duckdoom5 5 months ago
parent
commit
314e0f0f12
  1. 5
      src/AST/ASTVisitor.cs

5
src/AST/ASTVisitor.cs

@ -432,7 +432,10 @@ namespace CppSharp.AST @@ -432,7 +432,10 @@ namespace CppSharp.AST
return false;
if (VisitOptions.VisitFunctionReturnType)
property.Type.Visit(this);
{
if(property.Type != null) // Auto types return null types currently
property.Type.Visit(this);
}
if (VisitOptions.VisitPropertyAccessors)
{

Loading…
Cancel
Save