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
533a3790
Commit
533a3790
authored
Jan 04, 2006
by
simonpj
Browse files
[project @ 2006-01-04 11:50:44 by simonpj]
Add test for data con returning wrong type
parent
fa089da4
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
View file @
533a3790
...
...
@@ -139,3 +139,4 @@ test('tcfail151', normal, compile_fail, [''])
test
('
tcfail152
',
normal
,
compile_fail
,
[''])
test
('
tcfail153
',
normal
,
compile_fail
,
[''])
test
('
tcfail154
',
normal
,
compile_fail
,
[''])
test
('
tcfail155
',
normal
,
compile_fail
,
[''])
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail155.hs
0 → 100644
View file @
533a3790
{-# OPTIONS_GHC -fglasgow-exts #-}
-- Data type returns the wrong type
module
ShouldFail
where
data
T
a
where
P
::
L1
->
L2
data
L1
=
L1
data
L2
=
L2
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail155.stderr
0 → 100644
View file @
533a3790
tcfail155.hs:8:5:
Data constructor `P' returns type `L2' instead of its parent type
In the definition of data constructor `P'
In the data type declaration for `T'
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