瀏覽代碼

use applied types in using completion (fixed issue #1403)

Simon Krajewski 12 年之前
父節點
當前提交
7db3d5e915
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      typer.ml

+ 1 - 1
typer.ml

@@ -2535,7 +2535,7 @@ and type_expr ctx (e,p) (with_type:with_type) =
 							()
 							()
 						else begin
 						else begin
 							let f = prepare_using_field f in
 							let f = prepare_using_field f in
-							let f = { f with cf_params = []; cf_public = true } in
+							let f = { f with cf_params = []; cf_public = true; cf_type = TFun(args,ret) } in
 							acc := PMap.add f.cf_name f (!acc)
 							acc := PMap.add f.cf_name f (!acc)
 						end
 						end
 					| _ -> ()
 					| _ -> ()