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
0a4224d6
Commit
0a4224d6
authored
Sep 05, 2005
by
simonpj
Browse files
[project @ 2005-09-05 15:28:45 by simonpj]
Another test
parent
83852ab2
Changes
5
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_compile/tc165.hs
View file @
0a4224d6
{-# OPTIONS -dcore-lint #-}
{-# OPTIONS -dcore-lint
-fglasgow-exts
#-}
-- Fails GHC 5.04.2 with -dcore-lint
-- The issue ariseswhen you have a method that
...
...
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
View file @
0a4224d6
...
...
@@ -134,3 +134,4 @@ test('tcfail146', normal, compile_fail, [''])
test
('
tcfail147
',
normal
,
compile_fail
,
[''])
test
('
tcfail148
',
normal
,
compile_fail
,
[''])
test
('
tcfail149
',
normal
,
compile_fail
,
[''])
test
('
tcfail150
',
normal
,
compile_fail
,
[''])
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail098.hs
View file @
0a4224d6
...
...
@@ -4,6 +4,3 @@ module ShouldFail where
class
Bar
a
instance
Bar
a
=>
Bar
Bool
-- !!! constraining the type variable in a class head is illegal
class
Foo
a
where
op
::
Eq
a
=>
a
->
a
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail150.hs
0 → 100644
View file @
0a4224d6
module
ShouldFail
where
-- !!! constraining the type variable in a class head is illegal
-- Simpler version of tcfail149
class
Foo
a
where
op
::
Eq
a
=>
a
->
a
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail150.stderr
0 → 100644
View file @
0a4224d6
tcfail150.hs:5:0:
All of the type variables in the constraint `Eq a' are already in scope
(at least one must be universally quantified here)
When checking the class method: op :: (Eq a) => a -> a
In the class 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