summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/rn039.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename/should_compile/rn039.hs')
-rw-r--r--testsuite/tests/rename/should_compile/rn039.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/rn039.hs b/testsuite/tests/rename/should_compile/rn039.hs
new file mode 100644
index 0000000000..9033858158
--- /dev/null
+++ b/testsuite/tests/rename/should_compile/rn039.hs
@@ -0,0 +1,6 @@
+{-# OPTIONS -fwarn-name-shadowing #-}
+module ShouldCompile where
+
+-- !!! test shadowing of a global name
+
+g = 42 where f -1 = -1 -- shadows (-), probably by accident!