| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0004835 | OCaml | OCaml general | public | 2009-07-13 15:45 | 2009-12-08 17:50 |
|
| Reporter | gareuselesinge | |
| 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 | 0004835: None _ accepted as pattern match |
| Description | # let f x = match x with Some y -> y | None _ -> assert false;;
val f : 'a option -> 'a = <fun>
And if I use a name instead of _ it complains that None takes no arguments,
but likes 1 (not more) discarded arguments. |
| Tags | No tags attached. |
|
| Attached Files | |
|