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

refmt: "Encountered impossible type specification" error in valid private extensible variant type definition #2302

Open
jchavarri opened this issue Dec 26, 2018 · 1 comment

Comments

@jchavarri
Copy link
Contributor

Input (OCaml):

module type S = sig
  type t = private ..
  type t += Foo
end

Output:

refmt: internal error, uncaught exception:
       Reason_pprint_ast.NotPossible("Encountered impossible type specification")

Expected output:

module type S = {
  type t = pri ..;
  type t +=
    | Foo;
};

Related: ocaml/ocaml#1253

This was added in 4.06.0.

@anmonteiro
Copy link
Member

Probably fixed in #2036?

The parser is currently written for the 4.04.2 AST

anmonteiro added a commit to anmonteiro/reason that referenced this issue Apr 2, 2019
anmonteiro added a commit to anmonteiro/reason that referenced this issue Nov 3, 2019
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