浏览代码

Fixed yet another forward decl issue.

Mark Sibly 6 年之前
父节点
当前提交
edc31fce72
共有 1 个文件被更改,包括 9 次插入0 次删除
  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