Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,323
Issues
4,323
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
372
Merge Requests
372
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
881b85f1
Commit
881b85f1
authored
Oct 22, 2008
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test Trac
#2714
parent
756b6183
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
testsuite/tests/ghc-regress/typecheck/should_fail/T2714.hs
testsuite/tests/ghc-regress/typecheck/should_fail/T2714.hs
+8
-0
testsuite/tests/ghc-regress/typecheck/should_fail/T2714.stderr
...uite/tests/ghc-regress/typecheck/should_fail/T2714.stderr
+15
-0
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
+1
-0
No files found.
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
Markdown
is supported
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