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
479a9227
Commit
479a9227
authored
Jan 24, 2013
by
Simon Peyton Jones
Browse files
Test Trac
#2247
parent
7f823a0d
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/typecheck/should_fail/T2247.hs
0 → 100644
View file @
479a9227
{-# LANGUAGE FunctionalDependencies, MultiParamTypeClasses, UndecidableInstances, FlexibleInstances #-}
module
T2247
where
class
FD
a
b
|
a
->
b
instance
CFD
a
b
=>
FD
a
b
class
{- FD a b => -}
CFD
a
b
instance
CFD
Bool
Char
instance
CFD
Bool
Bool
f'
::
FD
Bool
Bool
=>
Bool
f'
=
True
g'
::
FD
Bool
Char
=>
Bool
g'
=
False
x
=
f'
testsuite/tests/typecheck/should_fail/T2247.stderr
0 → 100644
View file @
479a9227
T2247.hs:6:10:
Illegal instance declaration for `FD a b'
Multiple uses of this instance may be inconsistent
with the functional dependencies of the class.
In the instance declaration for `FD a b'
testsuite/tests/typecheck/should_fail/all.T
View file @
479a9227
...
@@ -293,3 +293,4 @@ test('T7525', normal, compile_fail, [''])
...
@@ -293,3 +293,4 @@ test('T7525', normal, compile_fail, [''])
test
('
T7368a
',
normal
,
compile_fail
,
[''])
test
('
T7368a
',
normal
,
compile_fail
,
[''])
test
('
T7545
',
normal
,
compile_fail
,
[''])
test
('
T7545
',
normal
,
compile_fail
,
[''])
test
('
T7279
',
normal
,
compile_fail
,
[''])
test
('
T7279
',
normal
,
compile_fail
,
[''])
test
('
T2247
',
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