Extra comma allowed in named fields
The following has a syntax error (extra comma after the
brace in line 5) undetected by ghc 6.0.1:
===================================
module Main(main) where
data X = X { x :: Int }
main = let d = X {, x = 2} in putStr "bug"
===================================
Trac metadata
| Trac field | Value |
|---|---|
| Version | None |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Compiler (Parser) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |