| Anonymous | Login | Signup for a new account | 2013-05-26 11:00 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||
| 0004427 | OCaml | Camlp4 | public | 2007-10-21 13:13 | 2010-04-29 14:26 | |||
| Reporter | jm | |||||||
| Assigned To | ertai | |||||||
| Priority | normal | Severity | minor | Reproducibility | always | |||
| Status | closed | Resolution | fixed | |||||
| Platform | OS | OS Version | ||||||
| Product Version | 3.10+dev | |||||||
| Target Version | Fixed in Version | 3.10+dev | ||||||
| Summary | 0004427: 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 | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
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 |