Ver Fonte

Fixed yet another forward decl issue.

Mark Sibly há 6 anos atrás
pai
commit
edc31fce72
1 ficheiros alterados com 9 adições e 0 exclusões
  1. 9 0
      src/mx2cc/translator.monkey2

+ 9 - 0
src/mx2cc/translator.monkey2

@@ -649,6 +649,15 @@ Method AddRef:Bool( node:SNode )
 			Return
 		Endif
 		
+		Local ftype:=TCast<FuncType>( type )
+		If ftype
+			DeclsVar( ftype.retType )
+			For Local type:=Eachin ftype.argTypes
+				DeclsVar( type )
+			Next
+			Return
+		Endif
+		
 		RefsType( type )
 	End