Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Alex D
GHC
Commits
932f0867
Commit
932f0867
authored
Apr 22, 2015
by
Simon Peyton Jones
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
,
[''])
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