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,247
Issues
4,247
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
396
Merge Requests
396
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
932f0867
Commit
932f0867
authored
Apr 22, 2015
by
Simon Peyton Jones
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test Trac #9858 comment:101
parent
746f086e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
testsuite/tests/typecheck/should_fail/T9858c.hs
testsuite/tests/typecheck/should_fail/T9858c.hs
+9
-0
testsuite/tests/typecheck/should_fail/T9858c.stderr
testsuite/tests/typecheck/should_fail/T9858c.stderr
+9
-0
testsuite/tests/typecheck/should_fail/all.T
testsuite/tests/typecheck/should_fail/all.T
+1
-0
No files found.
testsuite/tests/typecheck/should_fail/T9858c.hs
0 → 100644
View file @
932f0867
{-# LANGUAGE ImpredicativeTypes, FlexibleContexts #-}
module
T9858b
where
import
Data.Typeable
i
::
(
Typeable
a
,
Typeable
b
)
=>
Proxy
(
a
b
)
->
TypeRep
i
p
=
typeRep
p
j
=
i
(
Proxy
::
Proxy
(
Eq
Int
=>
Int
))
testsuite/tests/typecheck/should_fail/T9858c.stderr
0 → 100644
View file @
932f0867
T9858c.hs:9:8: error:
Couldn't match type ‘Eq Int => Int’ with ‘a0 b0’
Expected type: Proxy (a0 b0)
Actual type: Proxy (Eq Int => Int)
In the first argument of ‘i’, namely
‘(Proxy :: Proxy (Eq Int => Int))’
In the expression: i (Proxy :: Proxy (Eq Int => Int))
In an equation for ‘j’: j = i (Proxy :: Proxy (Eq Int => Int))
testsuite/tests/typecheck/should_fail/all.T
View file @
932f0867
...
...
@@ -358,3 +358,4 @@ test('T10194', normal, compile_fail, [''])
test
('
T8030
',
normal
,
compile_fail
,
[''])
test
('
T9858a
',
normal
,
compile_fail
,
[''])
test
('
T9858b
',
normal
,
compile_fail
,
[''])
test
('
T9858c
',
normal
,
compile_fail
,
[''])
Administrator
@root
mentioned in commit
da6199d0
·
Dec 17, 2018
mentioned in commit
da6199d0
mentioned in commit da6199d0f6d7589224b420f81b33ac03388b09b5
Toggle commit list
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