Skip to content

Duplicate record field

This compiles.

data D = D1 { f1 :: Int }
       | D2 { f1, f1 :: Int } -- Oops, duplicate

Probably harmless, but still.

Trac metadata
Trac field Value
Version 7.8.2
Type Bug
TypeOfFailure OtherFailure
Priority low
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information