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, pr_o.cmo: missing parenthesis around (fun ...) #8424

Closed
vicuna opened this issue Dec 19, 2003 · 1 comment
Closed

Camlp4, pr_o.cmo: missing parenthesis around (fun ...) #8424

vicuna opened this issue Dec 19, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Dec 19, 2003

Original bug ID: 1990
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Martin Jambon
Version: 3.07+2
OS: Linux
Submission from: f03v-10-10.d1.club-internet.fr (212.194.45.10)

$ cat test.ml
let f =
if true then
(fun x ->
if true then print_int x)
else
print_int

$ camlp4o pr_o.cmo test.ml
let f = if true then fun x -> if true then print_int x else print_int

Which is the same as:
let f = if true then (fun x -> if true then print_int x else print_int)

But it should be:
let f = if true then (fun x -> if true then print_int x) else print_int

@vicuna
Copy link
Author

vicuna commented May 12, 2004

Comment author: administrator

Assigned to MM
Fixed on 2004-05-12

@vicuna vicuna closed this as completed May 12, 2004
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant