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

The error "label defined several times" complains about the wrong label #5929

Closed
vicuna opened this issue Feb 21, 2013 · 2 comments
Closed

Comments

@vicuna
Copy link

vicuna commented Feb 21, 2013

Original bug ID: 5929
Reporter: @lefessan
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2015-12-11T18:18:32Z)
Resolution: duplicate
Priority: normal
Severity: minor
Version: 4.00.1
Category: typing
Duplicate of: #5821

Bug description

On the following program:

type t = {a : int; b:int; c:int };;
let a = 1
let b = 1;;
let t = { a; b; a }

I get the error:
File "/tmp/toto.ml", line 4, characters 8-19:
Error: The record field label b is defined several times

when the duplicated label is actually "a", not "b".

@vicuna
Copy link
Author

vicuna commented Feb 21, 2013

Comment author: @lpw25

This is probably a duplicate of #5821.

@vicuna
Copy link
Author

vicuna commented Feb 22, 2013

Comment author: @alainfrisch

Duplicate of #5821, already fixed in trunk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants