| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0004904 | OCaml | OCaml general | public | 2009-10-30 16:52 | 2010-04-30 03:26 |
|
| Reporter | lukstafi | |
| Assigned To | garrigue | |
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | assigned | Resolution | open | |
| Platform | | OS | | OS Version | |
| Product Version | | |
| Target Version | | Fixed in Version | | |
|
| Summary | 0004904: Warn about repeated function arguments especially for optional arguments |
| Description | If this feature is implemented, the warning should be on by default.
# let f ?(a=0) b ?(a=0) c = a+b+c;;
val f : ?a:int -> int -> ?a:int -> int -> int = <fun>
# f ~a:7 1 2;;
- : int = 3
|
| Tags | No tags attached. |
|
| Attached Files | |
|