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
Alex D
GHC
Commits
e164c370
Commit
e164c370
authored
Jul 01, 2008
by
simonpj
Browse files
Test Trac #2307
parent
ab9d5ab0
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_fail/T2307.hs
0 → 100644
View file @
e164c370
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies,
OverlappingInstances, UndecidableInstances,
IncoherentInstances,
FlexibleInstances #-}
-- Trac #2307
module
ShouldFail
where
class
C
a
b
c
|
a
->
b
,
a
->
c
instance
C
Int
(
Maybe
String
)
Float
instance
C
Int
(
Maybe
Bool
)
Double
testsuite/tests/ghc-regress/typecheck/should_fail/T2307.stderr
0 → 100644
View file @
e164c370
T2307.hs:11:10:
Functional dependencies conflict between instance declarations:
instance [incoherent] C Int (Maybe String) Float
-- Defined at T2307.hs:11:10-35
instance [incoherent] C Int (Maybe Bool) Double
-- Defined at T2307.hs:12:10-36
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
View file @
e164c370
...
...
@@ -193,3 +193,4 @@ test('tcfail201', normal, compile_fail, [''])
test
('
T1899
',
normal
,
compile_fail
,
[''])
test
('
T2126
',
normal
,
compile_fail
,
[''])
test
('
T2307
',
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