Browse Source

Fixed yet another forward decl issue.

Mark Sibly 6 years ago
parent
commit
edc31fce72
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/mx2cc/translator.monkey2

+ 9 - 0
src/mx2cc/translator.monkey2

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