[GHC] #11361: Test tc253 doesn't pass with reversed uniques
GHC
ghc-devs at haskell.org
Mon Jan 18 10:43:17 UTC 2016
#11361: Test tc253 doesn't pass with reversed uniques
-------------------------------------+-------------------------------------
Reporter: niteria | Owner:
Type: bug | Status: new
Priority: high | Milestone:
Component: Compiler (Type | Version: 8.1
checker) |
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: GHC rejects | Unknown/Multiple
valid program | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Simon Peyton Jones <simonpj@…>):
In [changeset:"cb24e684759f3d181a104cde76f0f95da896a7ef/ghc" cb24e68/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="cb24e684759f3d181a104cde76f0f95da896a7ef"
Fix typecheck of default associated type decls
This bug was thrown up by Trac #11361, but I found that the
problem was deeper: GHC was allowing
class C a where
type F (a :: k) :: *
type F (x :: *) = x -- Not right!
(Which is now indexed-types/should_compile/T11361a.)
Anyway the fix is relatively simple; use tcMatchTys in
tcDefaultAssocDecl.
Merge to 8.0 branch.
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11361#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list