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

None _ accepted as pattern match #4835

vicuna opened this Issue Jul 13, 2009 · 0 comments


None yet
1 participant
Copy link

vicuna commented Jul 13, 2009

Original bug ID: 4835
Reporter: gareuselesinge
Status: closed (set by @damiendoligez on 2009-12-08T16:50:23Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.11.1
Fixed in version: 3.12.0+dev
Category: ~DO NOT USE (was: OCaml general)
Duplicate of: #4675 #4717
Related to: #4052
Monitored by: lynxiamen

Bug description

let f x = match x with Some y -> y | None _ -> assert false;;

val f : 'a option -> 'a =

And if I use a name instead of _ it complains that None takes no arguments,
but likes 1 (not more) discarded arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.