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

Fix for Mantis 6221. #40

Merged
1 commit merged into from May 30, 2014
Merged

Fix for Mantis 6221. #40

1 commit merged into from May 30, 2014

Conversation

yallop
Copy link
Contributor

@yallop yallop commented May 30, 2014

Fix for Mantis 6221.

Test case:

$ cat field.ml
<:ctyp< a:b >>

Before:

$ camlp4of field.ml
File "field.ml", line 1, characters 10-11:
While expanding quotation "ctyp" in a position of "str_item":
  Parse error: "->" expected after [ctyp level star] (in [ctyp])

After:

$ camlp4of field.ml
Ast.TyCol (_loc, (Ast.TyId (_loc, (Ast.IdLid (_loc, "a")))),
  (Ast.TyId (_loc, (Ast.IdLid (_loc, "b")))))

http://caml.inria.fr/mantis/view.php?id=6221

Test case:

    $ cat field.ml
    <:ctyp< a:b >>

Before:

    $ camlp4of field.ml
    File "field.ml", line 1, characters 10-11:
    While expanding quotation "ctyp" in a position of "str_item":
      Parse error: "->" expected after [ctyp level star] (in [ctyp])

After:

    $ camlp4of field.ml
    Ast.TyCol (_loc, (Ast.TyId (_loc, (Ast.IdLid (_loc, "a")))),
      (Ast.TyId (_loc, (Ast.IdLid (_loc, "b")))))
ghost pushed a commit that referenced this pull request May 30, 2014
@ghost ghost merged commit ce59218 into camlp4:trunk May 30, 2014
@ghost
Copy link

ghost commented May 30, 2014

Thanks!

@yallop yallop deleted the mantis-6221 branch July 31, 2017 12:51
This pull request was closed.
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

Successfully merging this pull request may close these issues.

None yet

1 participant