浏览代码

handle structures for fopts

Simon Krajewski 12 年之前
父节点
当前提交
47063368cc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      typer.ml

+ 1 - 1
typer.ml

@@ -3275,7 +3275,7 @@ and build_call ctx acc el (with_type:with_type) p =
 		let el , t, e = (match follow e.etype with
 		| TFun (args,r) ->
 			let fopts = (match acc with
-				| AKExpr {eexpr = TField(e, (FStatic (_,f) | FInstance(_,f)))} ->
+				| AKExpr {eexpr = TField(e, (FStatic (_,f) | FInstance(_,f) | FAnon(f)))} ->
 					fopts e.etype f
 				| _ ->
 					None