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

Optional arguments given as ~?arg instead of ?arg in message #6408

Closed
vicuna opened this issue May 9, 2014 · 1 comment
Closed

Optional arguments given as ~?arg instead of ?arg in message #6408

vicuna opened this issue May 9, 2014 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented May 9, 2014

Original bug ID: 6408
Reporter: mkoconnor
Status: closed (set by @damiendoligez on 2014-05-16T15:58:06Z)
Resolution: fixed
Priority: low
Severity: text
Fixed in version: 4.02.0+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @hcarty

Bug description

In code such as below a function's incorrect optional argument is reported in the error message as ~?arg instead of ?arg.

Steps to reproduce

OCaml version 4.01.0

(fun (_ : (x:unit -> unit)) -> ()) (fun ?x:_ -> ());;

Error: This function should have type x:unit -> unit
but its first argument is labelled ~?x

File attachments

@vicuna
Copy link
Author

vicuna commented May 16, 2014

Comment author: @damiendoligez

Thanks for the patch, I applied it in branch 4.02 (commits 14882 and 14883)

@vicuna vicuna closed this as completed May 16, 2014
@vicuna vicuna added the bug label Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant