diff --git a/src/AST/Namespace.cs b/src/AST/Namespace.cs index becf39f5..b89f9b66 100644 --- a/src/AST/Namespace.cs +++ b/src/AST/Namespace.cs @@ -422,7 +422,7 @@ namespace CppSharp.AST { Func pred = (t => t.IsGenerated); return Enums.Exists(pred) || HasFunctions || Typedefs.Exists(pred) - || Classes.Any(pred) || Namespaces.Exists(n => n.HasDeclarations) || + || Classes.Any() || Namespaces.Exists(n => n.HasDeclarations) || Templates.Any(pred); } }