summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/rn022.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename/should_compile/rn022.hs')
-rw-r--r--testsuite/tests/rename/should_compile/rn022.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/rn022.hs b/testsuite/tests/rename/should_compile/rn022.hs
new file mode 100644
index 0000000000..c59b949a48
--- /dev/null
+++ b/testsuite/tests/rename/should_compile/rn022.hs
@@ -0,0 +1,11 @@
+-- this is legal, I think (WDP)
+
+module Confused where
+
+import Prelude hiding (otherwise)
+
+otherwise = False
+
+f x | otherwise = 1
+
+g otherwise | otherwise = 2