summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/rn063.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename/should_compile/rn063.hs')
-rw-r--r--testsuite/tests/rename/should_compile/rn063.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/rn063.hs b/testsuite/tests/rename/should_compile/rn063.hs
new file mode 100644
index 0000000000..4f40cce7ee
--- /dev/null
+++ b/testsuite/tests/rename/should_compile/rn063.hs
@@ -0,0 +1,14 @@
+
+{-# OPTIONS_GHC -Wall #-}
+
+module Foo where
+
+-- We should complain that both x and y are unused.
+-- We used to not warn for recursive bindings, like x (trac #2136).
+
+v :: a
+v = let x = x in undefined
+
+w :: a
+w = let y = 'a' in undefined
+