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
881b85f1
Commit
881b85f1
authored
Oct 22, 2008
by
simonpj
Browse files
Test Trac
#2714
parent
756b6183
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_fail/T2714.hs
0 → 100644
View file @
881b85f1
{-# LANGUAGE ScopedTypeVariables #-}
-- Trac #2714
module
T2714
where
f
::
((
a
->
b
)
->
b
)
->
(
forall
c
.
c
->
a
)
f
=
fmap
testsuite/tests/ghc-regress/typecheck/should_fail/T2714.stderr
0 → 100644
View file @
881b85f1
T2714.hs:8:4:
Couldn't match expected type `a' against inferred type `f b'
`a' is a rigid type variable bound by
the type signature for `f' at T2714.hs:7:7
In the expression: fmap
In the definition of `f': f = fmap
T2714.hs:8:4:
Couldn't match expected type `c'
against inferred type `f (f b -> b)'
`c' is a rigid type variable bound by
the polymorphic type `forall c. c -> a' at T2714.hs:8:4
In the expression: fmap
In the definition of `f': f = fmap
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
View file @
881b85f1
...
...
@@ -199,3 +199,4 @@ test('T2307', normal, compile_fail, [''])
test
('
T2414
',
normal
,
compile_fail
,
[''])
test
('
T2538
',
normal
,
compile_fail
,
[''])
test
('
T2688
',
normal
,
compile_fail
,
[''])
test
('
T2714
',
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