summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/rn029.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename/should_compile/rn029.hs')
-rw-r--r--testsuite/tests/rename/should_compile/rn029.hs17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/rn029.hs b/testsuite/tests/rename/should_compile/rn029.hs
new file mode 100644
index 0000000000..76dd993dc9
--- /dev/null
+++ b/testsuite/tests/rename/should_compile/rn029.hs
@@ -0,0 +1,17 @@
+-- !!! Checking that lazy name clashing works.
+module ShouldCompile where
+
+import Data.List ( reverse, sort )
+
+sort :: Int -- Clashes with Data.List.sort,
+sort = 4 -- but never used, so OK
+
+
+reverse :: Int -- Clashes with Data.List.reverse,
+reverse = 3 -- but the only uses are qualified
+
+x = ShouldCompile.reverse
+
+y = Data.List.reverse
+
+