diff options
author | simonpj <unknown> | 1999-08-20 13:13:03 +0000 |
---|---|---|
committer | simonpj <unknown> | 1999-08-20 13:13:03 +0000 |
commit | 94ad0e0c2b8a8d4e9440fd43e2ad9c01d373a7c6 (patch) | |
tree | 648f50666f505d770ff5c6df2afbea8c85dc8aaa /ghc | |
parent | 2dad6b8373e3079ff11c4d40e2512755b525172b (diff) | |
download | haskell-94ad0e0c2b8a8d4e9440fd43e2ad9c01d373a7c6.tar.gz |
[project @ 1999-08-20 13:13:03 by simonpj]
Add tcrun005
Diffstat (limited to 'ghc')
-rw-r--r-- | ghc/tests/typecheck/should_run/tcrun005.hs | 25 | ||||
-rw-r--r-- | ghc/tests/typecheck/should_run/tcrun005.stdout | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/ghc/tests/typecheck/should_run/tcrun005.hs b/ghc/tests/typecheck/should_run/tcrun005.hs new file mode 100644 index 0000000000..2c315725ef --- /dev/null +++ b/ghc/tests/typecheck/should_run/tcrun005.hs @@ -0,0 +1,25 @@ +-- !!! Dfun naming bug + +module Main where + + + data TT = TT + data TTT = TTT + + class CC a where + op_cc :: a -> a + + class CCT a where + op_cct :: a -> a + + -- These two instances should get different dfun names! + -- In GHC 4.04 they both got $fCCTTT + + instance CC TTT where + op_cc = id + + instance CCT TT where + op_cct = id + + main = case op_cc TTT of + TTT -> print "ok" diff --git a/ghc/tests/typecheck/should_run/tcrun005.stdout b/ghc/tests/typecheck/should_run/tcrun005.stdout new file mode 100644 index 0000000000..52c33a57c7 --- /dev/null +++ b/ghc/tests/typecheck/should_run/tcrun005.stdout @@ -0,0 +1 @@ +"ok" |