From 7971d0a33eec378a13e68f80f32b0b618eb21018 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Tue, 20 Aug 2013 18:22:42 +0300 Subject: [PATCH] Fixed the generation of unions by considering all unions non-reference types. Signed-off-by: Dimitar Dobrev --- src/AST/Class.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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