Skip to content

Commit 28a38ac

Browse files
authored
feat(compiler)!: Labeled and default arguments (#1623)
* feat(compiler)!: Labeled and default arguments * graindocs * remove formatting fixme * make loc required * Use helper for argument types * impossible case instead of assert false * use label name for generated options * use more standard user unaccessible name * standardize around call over apply * rework error messages * Add out of order use of argument in default value test * add order test
1 parent d40e84a commit 28a38ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+2899
-1803
lines changed

compiler/graindoc/docblock.re

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,10 @@ let output_for_throws = throws => {
207207

208208
let types_for_function = (~ident, vd: Types.value_description) => {
209209
switch (Ctype.repr(vd.val_type).desc) {
210-
| TTyArrow(args, returns, _) => (Some(args), Some(returns))
210+
| TTyArrow(args, returns, _) => (
211+
Some(List.map(snd, args)),
212+
Some(returns),
213+
)
211214
| _ => (None, None)
212215
};
213216
};

0 commit comments

Comments
 (0)