Duplicate field name should be an error

Bug #513585 reported by Matt Giuca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mars
Fix Released
Medium
Matt Giuca

Bug Description

It is an error to have the same field name appear across multiple constructors if the types don't match.

However, there is currently no check that the *same* constructor does not have multiple fields with the same name. This will only become an issue once field ref/set/replace is implemented (see bug #439171).

Related branches

Revision history for this message
Matt Giuca (mgiuca) wrote :

Also need to explain in the docs this rule, and also the rule about having duplicate field names across multiple constructors with different types.

Revision history for this message
Matt Giuca (mgiuca) wrote :

Fixed in newtypes branch, r1037.

Changed in mars:
status: Triaged → Fix Committed
Revision history for this message
Matt Giuca (mgiuca) wrote :

Merged to trunk, r1030.

Matt Giuca (mgiuca)
Changed in mars:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.