Ticket #7601 (closed bug: fixed)
Internal error with kind annotation on associated type family
Description
The following module:
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TypeFamilies #-}
module Bug where
class C (a :: k) where
type F (a :: k)
Makes GHC raise an internal error:
GHC internal error: `k' is not in scope during type checking, but it passed the renamer
tcl_env of environment: [(reB,
AThing forall (k :: BOX). k -> Constraint),
(reC, AThing forall (k :: BOX) (k :: BOX). k -> k)]
In the kind `k'
In the class declaration for `C'
Change History
Note: See
TracTickets for help on using
tickets.
