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
839f96c9
Commit
839f96c9
authored
Jan 05, 2006
by
simonpj
Browse files
[project @ 2006-01-05 10:06:30 by simonpj]
Add test for newtype existential
parent
7111d559
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
View file @
839f96c9
...
...
@@ -140,3 +140,4 @@ test('tcfail152', normal, compile_fail, [''])
test
('
tcfail153
',
normal
,
compile_fail
,
[''])
test
('
tcfail154
',
normal
,
compile_fail
,
[''])
test
('
tcfail155
',
normal
,
compile_fail
,
[''])
test
('
tcfail156
',
normal
,
compile_fail
,
[''])
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail156.hs
0 → 100644
View file @
839f96c9
{-# OPTIONS -fglasgow-exts #-}
-- Illegal existential context on a newtype
module
ShouldFail
where
newtype
Foo
=
forall
a
.
Foo
a
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail156.stderr
0 → 100644
View file @
839f96c9
tcfail156.hs:7:14:
A newtype constructor cannot have an existential context,
but `Foo' does
In the newtype declaration for `Foo'
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