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 =
87
87
88
88
and apply_coercion_result loc strict funct params args cc_res =
89
89
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 * )
95
95
| _ ->
96
96
Lambda. name_lambda strict funct (fun id ->
97
97
Lfunction
Original file line number Diff line number Diff line change @@ -40,16 +40,12 @@ function F2(X) {
40
40
}
41
41
42
42
let 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 ;
49
45
return {
50
46
sheep : sheep
51
47
} ;
52
- }
48
+ } )
53
49
} ;
54
50
55
51
export {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ let M = {
21
21
let EQ = Eq ( { } ) ( { } ) ;
22
22
23
23
let MF = {
24
- F : ( funarg , funarg$1 ) => ( { } )
24
+ F : funarg => ( funarg => ( { } ) )
25
25
} ;
26
26
27
27
function UseF ( X ) {
You can’t perform that action at this time.
0 commit comments