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
f06d2707
Commit
f06d2707
authored
Feb 21, 2007
by
simonpj
Browse files
Tests for Trac
#1154
parent
9570d860
Changes
5
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_compile/all.T
View file @
f06d2707
...
...
@@ -237,6 +237,7 @@ test('tc221', normal, compile, [''])
test
('
tc222
',
normal
,
compile
,
[''])
test
('
tc223
',
normal
,
compile
,
[''])
test
('
tc224
',
normal
,
compile
,
[''])
test
('
tc225
',
normal
,
compile
,
[''])
test
('
faxen
',
normal
,
compile
,
[''])
...
...
testsuite/tests/ghc-regress/typecheck/should_compile/tc225.hs
0 → 100644
View file @
f06d2707
{-# OPTIONS -fglasgow-exts #-}
-- Newtype in GADT syntax
module
ShouldCompile
where
newtype
Bug
a
where
Bug
::
a
->
Bug
a
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
View file @
f06d2707
...
...
@@ -161,3 +161,4 @@ test('tcfail172', normal, compile_fail, [''])
test
('
tcfail173
',
normal
,
compile_fail
,
[''])
test
('
tcfail174
',
normal
,
compile_fail
,
[''])
test
('
tcfail175
',
normal
,
compile_fail
,
[''])
test
('
tcfail176
',
normal
,
compile_fail
,
[''])
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail176.hs
0 → 100644
View file @
f06d2707
{-# OPTIONS -fglasgow-exts #-}
-- Newtype in GADT syntax
module
ShouldFail
where
newtype
Bug
a
where
Bug
::
a
->
Maybe
a
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail176.stderr
0 → 100644
View file @
f06d2707
tcfail176.hs:7:20:
Data constructor `Bug' returns type `Maybe'
instead of its parent type
In the definition of data constructor `Bug'
In the newtype declaration for `Bug'
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