[GHC] #10591: repeated field name allowed in constructor
GHC
ghc-devs at haskell.org
Tue Jun 30 20:12:27 UTC 2015
#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
More information about the ghc-tickets
mailing list