소스 검색

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
 							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
 					| _ -> ()