summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/T2436.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename/should_compile/T2436.hs')
-rw-r--r--testsuite/tests/rename/should_compile/T2436.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/T2436.hs b/testsuite/tests/rename/should_compile/T2436.hs
new file mode 100644
index 0000000000..5cfd64100a
--- /dev/null
+++ b/testsuite/tests/rename/should_compile/T2436.hs
@@ -0,0 +1,14 @@
+{-# LANGUAGE TypeFamilies #-}
+{-# OPTIONS_GHC -fwarn-duplicate-exports #-}
+
+module T2436( C(..), T(..), module T2436a, S(..) ) where
+
+import T2436a
+
+class C a where
+ data T a
+
+instance C Int where
+ data T Int = TInt Int
+
+data instance S Int = SInt \ No newline at end of file