Internal error with kind annotation on associated type family
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'
Trac metadata
Trac field | Value |
---|---|
Version | 7.7 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |