Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline records in variant type definitions aren't pretty-printed properly in rtop #1163

Closed
hcarty opened this issue Mar 23, 2017 · 1 comment · Fixed by #2336
Closed

Inline records in variant type definitions aren't pretty-printed properly in rtop #1163

hcarty opened this issue Mar 23, 2017 · 1 comment · Fixed by #2336
Labels

Comments

@hcarty
Copy link
Contributor

hcarty commented Mar 23, 2017

Reason 1.11.0 + OCaml 4.04.0 from opam

Inline record arguments to variant constructors are not pretty-printed properly from rtop but they do show up properly in actual values:

For example:

Reason # type t = | A { x : int };
type t = A
Reason # A { x : 1 };
- : t = A {x : 1}

refmt does the right thing so it seems to be limited to rtop.

@hcarty hcarty changed the title Inline records in variants aren't pretty-printed properly in rtop Inline records in variant type definitions aren't pretty-printed properly in rtop Mar 23, 2017
@jaredly jaredly added the Rtop label Jun 14, 2018
@jordwalke
Copy link
Member

Fixed here: #2336

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants