diff --git a/src/AST/Class.cs b/src/AST/Class.cs index aa756db2..cce81845 100644 --- a/src/AST/Class.cs +++ b/src/AST/Class.cs @@ -145,7 +145,7 @@ namespace CppSharp.AST public bool IsRefType { - get { return Type == ClassType.RefType; } + get { return Type == ClassType.RefType && !IsUnion; } } public IEnumerable Constructors