Skip to content

Commit

Permalink
feat(compiler)!: Labeled and default arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
ospencer committed Feb 21, 2023
1 parent 3b6b5ca commit 167202d
Show file tree
Hide file tree
Showing 37 changed files with 1,308 additions and 507 deletions.
5 changes: 4 additions & 1 deletion compiler/graindoc/docblock.re
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,10 @@ let output_for_throws = throws => {

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 167202d

Please sign in to comment.