Skip to content

Commit

Permalink
feat(compiler)!: Optional and labeled arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
ospencer committed Jan 29, 2023
1 parent 43082f5 commit 22616b2
Show file tree
Hide file tree
Showing 44 changed files with 1,361 additions and 635 deletions.
5 changes: 4 additions & 1 deletion compiler/graindoc/docblock.re
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ let output_for_history = (~current_version, attr_version, attr_desc) => {

let types_for_function = (~ident, vd: Types.value_description) => {
switch (Ctype.repr(vd.val_type).desc) {
| TTyArrow(args, returns, _) => (Some(args), Some(returns))
| TTyArrow(args, returns, _) => (
Some(List.map(snd, args)),
Some(returns),
)
| _ => (None, None)
};
};
Expand Down
Loading

0 comments on commit 22616b2

Please sign in to comment.