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

Confusing/incorrect error message for unexpected record literal #5782

Closed
vicuna opened this issue Oct 9, 2012 · 1 comment
Closed

Confusing/incorrect error message for unexpected record literal #5782

vicuna opened this issue Oct 9, 2012 · 1 comment
Labels
Milestone

Comments

@vicuna
Copy link

vicuna commented Oct 9, 2012

Original bug ID: 5782
Reporter: @mjambon
Status: closed (set by @xavierleroy on 2015-12-11T18:21:26Z)
Resolution: open
Priority: normal
Severity: text
Platform: any
Version: 4.00.1
Target version: 4.01.0+dev
Fixed in version: 4.01.0+dev
Category: ~DO NOT USE (was: OCaml general)
Has duplicate: #6117
Monitored by: @hcarty

Bug 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

@vicuna
Copy link
Author

vicuna commented Jan 3, 2013

Comment author: @damiendoligez

Appears to be fixed in trunk, probably as a side-effect of the changes in record typing.

@vicuna vicuna closed this as completed Dec 11, 2015
@vicuna vicuna added this to the 4.01.0 milestone Mar 14, 2019
@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