summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar/should_compile/ds002.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deSugar/should_compile/ds002.hs')
-rw-r--r--testsuite/tests/deSugar/should_compile/ds002.hs16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/deSugar/should_compile/ds002.hs b/testsuite/tests/deSugar/should_compile/ds002.hs
new file mode 100644
index 0000000000..280674e1fe
--- /dev/null
+++ b/testsuite/tests/deSugar/should_compile/ds002.hs
@@ -0,0 +1,16 @@
+-- !!! ds002 -- overlapping equations and guards
+--
+-- this tests "overlapping" variables and guards
+
+module ShouldCompile where
+
+f x = x
+f y = y
+f z = z
+
+g x y z | True = f z
+ | True = f z
+ | True = f z
+g x y z | True = f z
+ | True = f z
+ | True = f z