Skip to content
GitLab
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
7d3ceb38
Commit
7d3ceb38
authored
Jun 04, 2008
by
simonpj
Browse files
Test for Trac
#2310
parent
67049725
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/rename/should_fail/T2310.hs
0 → 100644
View file @
7d3ceb38
{-# OPTIONS_GHC -XScopedTypeVariables -XPatternSignatures #-}
module
Foo
where
foo
=
let
c
=
\
x
::
a
->
(
x
::
a
)
in
co
testsuite/tests/ghc-regress/rename/should_fail/T2310.stderr
0 → 100644
View file @
7d3ceb38
T2310.hs:5:21:
Illegal result type signature `a'
Result signatures are no longer supported in pattern matches
In a lambda abstraction: \ x :: a -> (x :: a)
T2310.hs:5:38: Not in scope: `co'
testsuite/tests/ghc-regress/rename/should_fail/all.T
View file @
7d3ceb38
...
...
@@ -59,4 +59,5 @@ test('rnfail054', normal, compile_fail, [''])
test
('
rnfail055
',
if_compiler_lt
('
ghc
',
'
6.9
',
skip
),
multimod_compile_fail
,
['
RnFail055
','
-v0
'])
test
('
rn_dup
',
normal
,
compile_fail
,
[''])
test
('
T2310
',
normal
,
compile_fail
,
[''])
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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