logo       

[ ghc-Bugs-847471 ] Extra comma allowed in named fields: msg#00043

lang.haskell.glasgow.bugs

Subject: [ ghc-Bugs-847471 ] Extra comma allowed in named fields

Bugs item #847471, was opened at 2003-11-22 17:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=847471&group_id=8032

Category: Compiler (Parser)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Extra comma allowed in named fields

Initial Comment:
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"
===================================


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=847471&group_id=8032


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise