Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
ae578d6f
Commit
ae578d6f
authored
Aug 24, 2001
by
simonmar
Browse files
[project @ 2001-08-24 15:18:35 by simonmar]
This test moved to typecheck/should_fail/tcfail0{97,98}
parent
0f2c5241
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/rename/should_fail/all.T
View file @
ae578d6f
...
...
@@ -14,7 +14,6 @@ test "rnfail010" { vtcf("") }
test
"
rnfail011
"
{
vtcf
("")
}
test
"
rnfail012
"
{
vtcf
("")
}
test
"
rnfail013
"
{
vtcf
("")
}
test
"
rnfail014
"
{
vtcf
("")
}
test
"
rnfail015
"
{
vtcf
("")
}
test
"
rnfail016
"
{
vtcf
("")
}
test
"
rnfail017
"
{
vtcf
("")
}
...
...
testsuite/tests/ghc-regress/rename/should_fail/rnfail014.hs
deleted
100644 → 0
View file @
0f2c5241
{- Check that the context of a type does not
constrain any in-scope variables, and only constrains
type variables free in the type.
-}
module
Foo
where
instance
Eq
a
=>
Eq
Bool
where
(
==
)
=
error
"help"
f
::
Eq
a
=>
Int
->
Int
f
x
=
x
class
Foo
a
where
op
::
Eq
a
=>
a
->
a
testsuite/tests/ghc-regress/rename/should_fail/rnfail014.stderr
deleted
100644 → 0
View file @
0f2c5241
rnfail014.hs:8:
Ambiguous constraint `Eq a'
in the type: Eq Bool
Each forall-d type variable mentioned by the constraint must appear after the =>.
In the type signature for an instance decl
rnfail014.hs:12:
Ambiguous constraint `Eq a'
in the type: Int -> Int
Each forall-d type variable mentioned by the constraint must appear after the =>.
In the type signature for `f'
rnfail014.hs:17:
All of the type variable(s) in the constraint `Eq a' are already in scope
At least one must be universally quantified here
In the type signature for `op'
Compilation had errors
Write
Preview
Markdown
is supported
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