summaryrefslogtreecommitdiff
path: root/testsuite/tests/module/mod32.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/module/mod32.hs')
-rw-r--r--testsuite/tests/module/mod32.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/module/mod32.hs b/testsuite/tests/module/mod32.hs
new file mode 100644
index 0000000000..2922bab0ce
--- /dev/null
+++ b/testsuite/tests/module/mod32.hs
@@ -0,0 +1,5 @@
+-- !!! Defining local class with same name as imported type.
+-- was: Imported tycon clashes with local class definition
+module M where
+import Prelude(Int,Bool)
+class Int a where (==) :: a -> a -> Bool