From 80bfc78fa659cece634612581355c2db94026fa8 Mon Sep 17 00:00:00 2001 From: Jelle Date: Tue, 4 Feb 2025 21:56:29 +0000 Subject: [PATCH] Fix crash on auto return types (#1898) Not sure if this is resolved properly --- src/AST/ASTVisitor.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/AST/ASTVisitor.cs b/src/AST/ASTVisitor.cs index 78ecb58a..d84969ae 100644 --- a/src/AST/ASTVisitor.cs +++ b/src/AST/ASTVisitor.cs @@ -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) {