GHC internal error: ‘Y’ is not in scope during type checking, but it passed the renamer
{-# LANGUAGE TypeInType #-}
data X :: Y where Y :: X
The error message is:
Bug.hs:2:11: error: …
• GHC internal error: ‘Y’ is not in scope during type checking, but it passed the renamer
tcl_env of environment: [r1cR :-> APromotionErr TyConPE]
• In the kind ‘Y’
Originally reported by @mietek in #11821 (closed)
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | mietek |
Operating system | |
Architecture |