| Anonymous | Login | Signup for a new account | 2013-05-19 02:15 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 | |||
| 0005075 | OCaml | OCaml general | public | 2010-06-15 16:38 | 2010-06-16 03:25 | |||
| Reporter | nobelius | |||||||
| Assigned To | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | |||
| Status | closed | Resolution | fixed | |||||
| Platform | OS | OS Version | ||||||
| Product Version | 3.11.1 | |||||||
| Target Version | Fixed in Version | 3.12.0+dev | ||||||
| Summary | 0005075: problem with optional arguments when defining a type with a "Some of <type>" constructor | |||||||
| Description | When compiling with "ocamlc -c" the following code: "type t = Some of int let func ?(modifies=ref false) _ = ()" the following error is obtained: "File "test.ml", line 2, characters 20-29: Error: This pattern matches values of type 'a option but a pattern was expected which matches values of type t" This is due to the fact that optional arguments "are actually implemented as option types". This could have been avoided if option type was defined in Pervasives but it is a built-in type. | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships |
||||||
|
||||||
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2010-06-15 16:38 | nobelius | New Issue | |
| 2010-06-16 03:25 | garrigue | Relationship added | duplicate of 0004884 |
| 2010-06-16 03:25 | garrigue | Note Added: 0005553 | |
| 2010-06-16 03:25 | garrigue | Status | new => closed |
| 2010-06-16 03:25 | garrigue | Resolution | open => fixed |
| 2010-06-16 03:25 | garrigue | Fixed in Version | => 3.12.0+dev |
| Copyright © 2000 - 2011 MantisBT Group |