Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006408OCamlOCaml generalpublic2014-05-09 03:542014-05-16 17:58
Reportermkoconnor 
Assigned To 
PrioritylowSeveritytextReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version4.02.0+dev 
Summary0006408: Optional arguments given as ~?arg instead of ?arg in message
DescriptionIn 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
TagsNo tags attached.
Attached Filespatch file icon fix-labelled-argument-message.patch [^] (1,833 bytes) 2014-05-09 03:54 [Show Content]

- Relationships

-  Notes
(0011498)
doligez (administrator)
2014-05-16 17:58

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

- Issue History
Date Modified Username Field Change
2014-05-09 03:54 mkoconnor New Issue
2014-05-09 03:54 mkoconnor File Added: fix-labelled-argument-message.patch
2014-05-16 17:58 doligez Note Added: 0011498
2014-05-16 17:58 doligez Status new => closed
2014-05-16 17:58 doligez Resolution open => fixed
2014-05-16 17:58 doligez Fixed in Version => 4.02.0+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker