summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/prog001/rn037.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename/prog001/rn037.hs')
-rw-r--r--testsuite/tests/rename/prog001/rn037.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/rename/prog001/rn037.hs b/testsuite/tests/rename/prog001/rn037.hs
new file mode 100644
index 0000000000..544de2fdd9
--- /dev/null
+++ b/testsuite/tests/rename/prog001/rn037.hs
@@ -0,0 +1,9 @@
+-- !!! Checking that you can hide a constructor
+module ShouldCompile where
+
+import Rn037Help hiding( C )
+ -- C is the constructor, but we should
+ -- still be able to hide it
+
+-- we should still be able to refer to the type constructor, though
+type Foo = T