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

Invalid reformatting of first-class module type with constraints #2150

Closed
jguyon opened this issue Aug 19, 2018 · 1 comment
Closed

Invalid reformatting of first-class module type with constraints #2150

jguyon opened this issue Aug 19, 2018 · 1 comment

Comments

@jguyon
Copy link

jguyon commented Aug 19, 2018

Given this valid code:

module type Test = {type a;};
type t('a) = (module Test with type a = 'a);

Refmt prints this code which produces a syntax error:

module type Test = {type a;};
type t('a) = (module Test) with type a = 'a;
@anmonteiro
Copy link
Member

anmonteiro commented Aug 19, 2018

Thanks for reporting.

This was a regression from #2124. Just opened #2151 with a fix.

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

No branches or pull requests

2 participants