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
29c623e3
Commit
29c623e3
authored
Aug 10, 2007
by
simonpj
Browse files
Test Trac
#1606
parent
f656d8a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
View file @
29c623e3
...
@@ -169,3 +169,4 @@ test('tcfail181', normal, compile_fail, [''])
...
@@ -169,3 +169,4 @@ test('tcfail181', normal, compile_fail, [''])
test
('
tcfail182
',
normal
,
compile_fail
,
[''])
test
('
tcfail182
',
normal
,
compile_fail
,
[''])
test
('
tcfail183
',
normal
,
compile_fail
,
[''])
test
('
tcfail183
',
normal
,
compile_fail
,
[''])
test
('
tcfail184
',
normal
,
compile_fail
,
[''])
test
('
tcfail184
',
normal
,
compile_fail
,
[''])
test
('
tcfail185
',
normal
,
compile_fail
,
[''])
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail185.hs
0 → 100644
View file @
29c623e3
-- See Trac #1606
module
ShouldFail
where
f
::
Int
->
Int
->
Bool
->
Bool
->
Int
->
Int
f
a
b
=
\
x
y
->
let
{
y1
=
y
;
y2
=
y1
;
y3
=
y2
;
y4
=
y3
;
y5
=
y4
;
y6
=
y5
;
y7
=
y6
}
in
x
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail185.stderr
0 → 100644
View file @
29c623e3
tcfail185.hs:7:31:
Couldn't match expected type `Int -> Int'
against inferred type `Bool'
In the expression:
let
y1 = y
y2 = y1
y3 = y2
....
in x
In the expression:
\ x y
-> let
y1 = ...
....
in x
In the definition of `f': f a b = \ x y -> let ... in x
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