2
0
Эх сурвалжийг харах

Fixed yet another forward decl issue.

Mark Sibly 6 жил өмнө
parent
commit
edc31fce72

+ 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