Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
9cb3bde9
Commit
9cb3bde9
authored
Nov 11, 2004
by
simonpj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2004-11-11 15:14:53 by simonpj]
Add comments
parent
1fc4f8ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail080.hs
...uite/tests/ghc-regress/typecheck/should_fail/tcfail080.hs
+11
-0
No files found.
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail080.hs
View file @
9cb3bde9
...
@@ -2,6 +2,17 @@
...
@@ -2,6 +2,17 @@
-- !!! Multi-param type classes test: ambiguity bug
-- !!! Multi-param type classes test: ambiguity bug
-- GHC actually accepts this program because
-- q :: Collection c a => a -> Bool
-- and there is no a priori reason to suppose that
-- q would be ambiguous in every context. For example,
-- it could be fine if we had
-- instance c Int where ...
-- Of course, it'd be hard to fill in the "..." in this particular
-- case, but that relies on observations about the form of the types
-- of the class methods, surely beyond what a compiler should do.
-- That's why GHC accepts it
module
ShouldFail
where
module
ShouldFail
where
class
Collection
c
a
where
class
Collection
c
a
where
...
...
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