| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0005782 | OCaml | OCaml general | public | 2012-10-10 00:42 | 2013-01-03 16:29 |
|
| Reporter | Martin Jambon | |
| Assigned To | | |
| Priority | normal | Severity | text | Reproducibility | always |
| Status | resolved | Resolution | open | |
| Platform | any | OS | | OS Version | |
| Product Version | 4.00.1 | |
| Target Version | 4.01.0+dev | Fixed in Version | 4.01.0+dev | |
|
| Summary | 0005782: Confusing/incorrect error message for unexpected record literal |
| Description | The error message about mixed labels occurs when a record literal is placed where an other type is expected, even if the expected type is not a record:
# ({ contents = 0 } : unit);;
Error: The record field label Pervasives.contents belongs to the type
'a ref but is mixed here with labels of type unit
|
| Tags | No tags attached. |
|
| Attached Files | |
|