File tree Expand file tree Collapse file tree 3 files changed +9
-13
lines changed Expand file tree Collapse file tree 3 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -87,11 +87,11 @@ let rec apply_coercion loc strict (restr : Typedtree.module_coercion) arg =
8787
8888and apply_coercion_result loc strict funct params args cc_res =
8989 match cc_res with
90- | Tcoerce_functor (cc_arg , cc_res ) ->
91- let param = Ident. create " funarg" in
92- let arg = apply_coercion loc Alias cc_arg (Lvar param) in
93- apply_coercion_result loc strict funct (param :: params) (arg :: args)
94- cc_res
90+ ( * | Tcoerce_functor (cc_arg , cc_res ) ->
91+ let param = Ident. create "funarg" in
92+ let arg = apply_coercion loc Alias cc_arg (Lvar param ) in
93+ apply_coercion_result loc strict funct (param :: params ) (arg :: args )
94+ cc_res * )
9595 | _ ->
9696 Lambda. name_lambda strict funct (fun id ->
9797 Lfunction
Original file line number Diff line number Diff line change @@ -40,16 +40,12 @@ function F2(X) {
4040}
4141
4242let M = {
43- F : ( funarg , funarg$1 ) => {
44- let Y = {
45- foo : funarg$1 . foo
46- } ;
47- let cow = x => Y . foo ( funarg . foo ( x ) ) ;
48- let sheep = x => 1 + cow ( x ) | 0 ;
43+ F : funarg => ( funarg$1 => {
44+ let sheep = x => 1 + funarg$1 . foo ( funarg . foo ( x ) ) | 0 ;
4945 return {
5046 sheep : sheep
5147 } ;
52- }
48+ } )
5349} ;
5450
5551export {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ let M = {
2121let EQ = Eq ( { } ) ( { } ) ;
2222
2323let MF = {
24- F : ( funarg , funarg$1 ) => ( { } )
24+ F : funarg => ( funarg => ( { } ) )
2525} ;
2626
2727function UseF ( X ) {
You can’t perform that action at this time.
0 commit comments