[GHC] #7433: Promoted types accepted without flag
GHC
cvs-ghc at haskell.org
Tue Nov 20 10:07:58 CET 2012
#7433: Promoted types accepted without flag
-----------------------------+----------------------------------------------
Reporter: dreixel | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.6.1 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Blockedby:
Blocking: | Related:
-----------------------------+----------------------------------------------
Sean Leather reports that
{{{
data N = Z
type T = 'Z
}}}
is accepted without `-XDataKinds`.
Interestingly, if we remove the quote on `'Z` we get the expected error:
{{{
Not in scope: type constructor or class `Z'
A data constructor of that name is in scope; did you mean -XDataKinds?
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7433>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list