Browse Source

Fix for extends void vars.

Mark Sibly 9 years ago
parent
commit
892dccb7dc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mx2new/translator_cpp.monkey2

+ 1 - 1
src/mx2new/translator_cpp.monkey2

@@ -150,7 +150,7 @@ Class Translator_CPP Extends Translator
 		End
 
 		Local ctype:=TCast<ClassType>( type )
-		If ctype And (ctype.cdecl.kind="class" Or ctype.cdecl.kind="interface")
+		If ctype And Not ctype.IsVoid And (ctype.cdecl.kind="class" Or ctype.cdecl.kind="interface")
 			Return gc+ClassName( ctype )+">"
 		Endif