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

camlp4o can't parse guards on "fun" expressions #4331

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

camlp4o can't parse guards on "fun" expressions #4331

vicuna opened this issue Jun 29, 2007 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Jun 29, 2007

Original bug ID: 4331
Reporter: @yallop
Assigned to: ertai
Status: closed (set by @xavierleroy on 2010-04-29T12:26:07Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.10.0
Fixed in version: 3.10+dev
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Monitored by: @yallop

Bug description

Here's the problem:

$ cat test.ml
let _ = fun x when x > 3 -> 2

$ ocamlc test.ml
File "test.ml", line 1, characters 8-29:
Warning X: bad style, all clauses in this pattern-matching are guarded.

$ camlp4of test.ml
File "test.ml", line 1, characters 14-18:
Parse error: [fun_def] expected after [labeled_ipatt] (in [expr])

@vicuna
Copy link
Author

vicuna commented Nov 27, 2007

Comment author: ertai

Thanks for the report. This is now fixed in the CVS (both in trunk and release310 branch).

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