Skip to content

Commit

Permalink
[generics] apply generic expansion to arg default values
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Jul 13, 2023
1 parent 402d201 commit 039ac61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/texpr.ml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ let map_expr_type f ft fv e =
| TFunction fu ->
let fu = {
tf_expr = f fu.tf_expr;
tf_args = List.map (fun (v,o) -> fv v, o) fu.tf_args;
tf_args = List.map (fun (v,o) -> fv v, (Option.map f o)) fu.tf_args;
tf_type = ft fu.tf_type;
} in
{ e with eexpr = TFunction fu; etype = ft e.etype }
Expand Down

0 comments on commit 039ac61

Please sign in to comment.