Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004427OCamlCamlp4public2007-10-21 13:132010-04-29 14:26
Reporterjm 
Assigned Toertai 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.10+dev 
Target VersionFixed in Version3.10+dev 
Summary0004427: Camlp4 removes brackets around immediate functions inside a list.
Description% cat test.ml4
let l : (unit -> int) list = [(fun _ -> 42); (fun _ -> 42)]
% camlp4of -printer o -impl test.ml4 > test.ml
% ocamlc -i test.ml
File "test.ml", line 1, characters 40-42:
Warning S: this expression should have type unit.
File "test.ml", line 1, characters 44-55:
This expression should not be a function, the expected type is
int
2% cat test.ml
let l : (unit -> int) list = [ fun _ -> 42; fun _ -> 42 ]
% ocamlc -i -impl test.ml4
val l : (unit -> int) list
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0004362)
ertai (developer)
2007-11-27 15:35

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

- Issue History
Date Modified Username Field Change
2007-10-21 13:13 jm New Issue
2007-11-10 14:08 xleroy Status new => assigned
2007-11-10 14:08 xleroy Assigned To => ertai
2007-11-27 15:35 ertai Note Added: 0004362
2007-11-27 15:35 ertai Status assigned => resolved
2007-11-27 15:35 ertai Resolution open => fixed
2007-11-27 15:35 ertai Fixed in Version => 3.10+dev
2010-04-29 14:26 xleroy Status resolved => closed


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker