Ver Fonte

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

Simon Krajewski há 12 anos atrás
pai
commit
7db3d5e915
1 ficheiros alterados com 1 adições e 1 exclusões
  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
 							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)
 						end
 					| _ -> ()