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

The toplevel printer wrongly prints Foo(-1) as Foo -1 #4365

Closed
vicuna opened this issue Aug 16, 2007 · 1 comment
Closed

The toplevel printer wrongly prints Foo(-1) as Foo -1 #4365

vicuna opened this issue Aug 16, 2007 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Aug 16, 2007

Original bug ID: 4365
Reporter: ertai
Status: closed (set by @garrigue on 2007-08-16T08:03:45Z)
Resolution: fixed
Priority: low
Severity: tweak
Version: 3.10.0
Fixed in version: 3.10+dev
Category: -for Caml light use https://github.com/camllight/camllight/issues

Bug description

The toplevel printer forget some parenthesis when using polymorphic variants.

$ ocaml

`Foo(-1);;

  • : [> Foo of int ] = Foo -1

Some(-1);;

  • : int option = Some (-1)
@vicuna
Copy link
Author

vicuna commented Aug 16, 2007

Comment author: @garrigue

Fixed in CVS. For some reason, the problem had been only corrected for normal variants...

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

No branches or pull requests

1 participant