Commit 9d5ace97 authored by simonpj's avatar simonpj
Browse files

[project @ 2001-12-20 09:06:26 by simonpj]

Remove tcfail039; now legal after a H98 change
parent 2acb5952
-- !!! bogus re-use of prelude class-method name (==)
--
module ShouldFail where
data NUM = ONE | TWO
class EQ a where
(==) :: a -> a -> Bool
instance EQ NUM where
a /= b = False
a == b = True
tcfail039.hs:11:
Ambiguous occurrence `=='
It could refer to either `ShouldFail.==', defined at tcfail039.hs:7
or `PrelBase.==', imported from Prelude at tcfail039.hs:3
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment