[GHC] #7827: GHC internal error: `a' is not in scope during type checking, but it passed the renamer

GHC cvs-ghc at haskell.org
Wed Apr 10 19:21:26 CEST 2013


#7827: GHC internal error: `a' is not in scope during type checking, but it passed
the renamer
--------------------------------------+-------------------------------------
Reporter:  guest                      |          Owner:                  
    Type:  bug                        |         Status:  new             
Priority:  normal                     |      Component:  Compiler        
 Version:  7.6.2                      |       Keywords:                  
      Os:  Unknown/Multiple           |   Architecture:  Unknown/Multiple
 Failure:  GHC rejects valid program  |      Blockedby:                  
Blocking:                             |        Related:                  
--------------------------------------+-------------------------------------

Comment(by monoidal):

 Here's a smaller version.

 {{{
 {-# LANGUAGE ScopedTypeVariables #-}
 module Main where

 bug :: a -> Int
 bug ((x :: a) :: a) = undefined
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7827#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list