Open jchavarri opened 1 month ago
@anmonteiro and myself have been debugging some issues that surfaced in reason-react test suite when upgrading to 5.2: https://github.com/reasonml/reason-react/pull/833.
It seems that when using 3.11.0 with OCaml 5.2, the type signature inferred from a function like:
3.11.0
let t = (~foo=0, ()) => foo;
The inferred type signature in merlin / lsp will be:
(~foo: int, unit) => int
when it should be:
(~foo: int=?, unit) => int
Some of the things we've gathered:
5.2
5.1
@anmonteiro and myself have been debugging some issues that surfaced in reason-react test suite when upgrading to 5.2: https://github.com/reasonml/reason-react/pull/833.
It seems that when using
3.11.0
with OCaml 5.2, the type signature inferred from a function like:The inferred type signature in merlin / lsp will be:
when it should be:
Some of the things we've gathered:
3.11.0
with5.2
, but the behavior is right when using it with5.1