[GHC] #10591: repeated field name allowed in constructor

#10591: repeated field name allowed in constructor -------------------------------------+------------------------------------- Reporter: gladstein | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.3 Keywords: | Operating System: Windows Architecture: | Type of failure: GHC accepts Unknown/Multiple | invalid program Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------+------------------------------------- {{{#!hs data Foo = Bar {x :: Int} | Baz {x :: Int, x :: String } main = do let a = Bar 1 b = Baz 2 "3" print $ x a print $ x b }}} :load "p:/DSFP/sandbox/bug1.hs" GHCi, version 7.8.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Prelude> [1 of 1] Compiling Main ( P:\DSFP\sandbox\bug1.hs, interpreted ) Ok, modules loaded: Main. *Main> main 1 1729382256910738103 *Main> -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10591 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10591: repeated field name allowed in constructor -------------------------------------+------------------------------------- Reporter: gladstein | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.8.3 Resolution: duplicate | Keywords: Operating System: Windows | Architecture: Type of failure: GHC accepts | Unknown/Multiple invalid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by monoidal): * status: new => closed * resolution: => duplicate Comment: Thank you for the report. This is fixed in GHC 7.10: #9156. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10591#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC