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

camlp4 doesn't parse method! #5042

Closed
vicuna opened this issue May 3, 2010 · 3 comments
Closed

camlp4 doesn't parse method! #5042

vicuna opened this issue May 3, 2010 · 3 comments

Comments

@vicuna
Copy link

vicuna commented May 3, 2010

Original bug ID: 5042
Reporter: @glondu
Assigned to: ertai
Status: closed (set by @xavierleroy on 2012-03-24T14:01:46Z)
Resolution: fixed
Priority: normal
Severity: major
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues

Bug description

The following code:

class a = object
method b = "a"
end

class b = object
inherit a
method! b = "b"
end

fails to be parsed by camlp4o with the following error:

File "test.ml", line 7, characters 2-8:
Parse error: "virtual" or [opt_private] expected after "method" (in [class_str_item])

I am using r10268 (3.12.0+dev17) of OCaml SVN.

@vicuna
Copy link
Author

vicuna commented May 3, 2010

Comment author: @glondu

sks is affected by this: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580041

@vicuna
Copy link
Author

vicuna commented May 12, 2010

Comment author: @damiendoligez

sks should not be affected anymore because warning 7 is now disabled by default.

@vicuna
Copy link
Author

vicuna commented Jun 16, 2010

Comment author: ertai

Fixed. Of course no version of OCaml with "method!" was released yet...

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