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

More camlp4o parsing issues: constraints in classes #4315

Closed
vicuna opened this issue Jun 15, 2007 · 1 comment
Closed

More camlp4o parsing issues: constraints in classes #4315

vicuna opened this issue Jun 15, 2007 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Jun 15, 2007

Original bug ID: 4315
Reporter: alexbaretta
Assigned to: ertai
Status: closed (set by @xavierleroy on 2010-04-29T12:26:20Z)
Resolution: fixed
Priority: urgent
Severity: major
Version: 3.10.0
Fixed in version: 3.10+dev
Category: ~DO NOT USE (was: OCaml general)

Bug description

Class bar cannot be parsed until the constraint is removed. This change in camlp4 parsing breaks a lot of code out there.

Additional information

alex@alex:~/dev/src-http$ ocaml
Objective Caml version 3.10.0

    Camlp4 Parsing version 3.10.0

class type foo = object end;;

class type foo = object end

class bar = object (self : 'a) constraint 'a = #foo end;;

Parse error: "end" expected after [class_structure] (in [class_expr])

class bar = object (self : 'a) end;;

class bar : object end

@vicuna
Copy link
Author

vicuna commented Jun 20, 2007

Comment author: ertai

Fixed in CVS.

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