Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
3de678a0
Commit
3de678a0
authored
Dec 31, 2008
by
simonpj
Browse files
Test Trac
#2721
parent
01c01d62
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/deriving/should_fail/T2721.hs
0 → 100644
View file @
3de678a0
{-# LANGUAGE TypeFamilies, GeneralizedNewtypeDeriving #-}
-- Trac #2721
module
T2721
where
class
C
a
where
type
T
a
foo
::
a
->
T
a
instance
C
Int
where
type
T
Int
=
Int
foo
=
id
newtype
N
=
N
Int
deriving
(
C
)
testsuite/tests/ghc-regress/deriving/should_fail/T2721.stderr
0 → 100644
View file @
3de678a0
T2721.hs:15:27:
Can't make a derived instance of `C N'
(even with cunning newtype deriving:
the class has associated types)
In the newtype declaration for `N'
testsuite/tests/ghc-regress/deriving/should_fail/all.T
View file @
3de678a0
...
...
@@ -22,3 +22,4 @@ test('T2394', normal, compile_fail, [''])
test
('
T2604
',
normal
,
compile_fail
,
[''])
test
('
T2701
',
normal
,
compile_fail
,
[''])
test
('
T2851
',
normal
,
compile_fail
,
[''])
test
('
T2721
',
normal
,
compile_fail
,
[''])
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment