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
3eb5711e
Commit
3eb5711e
authored
Apr 09, 2009
by
simonpj
Browse files
Test Trac
#3155
parent
bc64f556
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_fail/T3155.hs
0 → 100644
View file @
3eb5711e
{-# LANGUAGE GADTs, TypeOperators #-}
module
T3155
where
-- Test Trac #3155
-- Gave bad error message in GHC 6.10
data
Any
s
where
Any
::
s
ix
->
ix
->
Any
s
data
AnyR
s
r
where
AnyR
::
s
ix
->
r
ix
->
AnyR
s
r
unR
::
(
forall
ix
.
r
ix
->
ix
)
->
AnyR
s
r
->
Any
s
unR
f
(
AnyR
ix
rix
)
=
Any
ix
(
f
rix
)
testsuite/tests/ghc-regress/typecheck/should_fail/T3155.stderr
0 → 100644
View file @
3eb5711e
T3155.hs:13:17:
Illegal symbol '.' in type
Perhaps you intended -XRankNTypes or similar flag
to enable explicit-forall syntax: forall <tvs>. <type>
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
View file @
3eb5711e
...
...
@@ -207,3 +207,4 @@ test('T2538', normal, compile_fail, [''])
test
('
T2688
',
normal
,
compile_fail
,
[''])
test
('
T2714
',
normal
,
compile_fail
,
[''])
test
('
T2994
',
normal
,
compile_fail
,
[''])
test
('
T3155
',
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