summaryrefslogtreecommitdiff
path: root/ghc/compiler/tests/typecheck/should_fail/tcfail007.hs
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/compiler/tests/typecheck/should_fail/tcfail007.hs')
-rw-r--r--ghc/compiler/tests/typecheck/should_fail/tcfail007.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/ghc/compiler/tests/typecheck/should_fail/tcfail007.hs b/ghc/compiler/tests/typecheck/should_fail/tcfail007.hs
new file mode 100644
index 0000000000..ee24983aff
--- /dev/null
+++ b/ghc/compiler/tests/typecheck/should_fail/tcfail007.hs
@@ -0,0 +1,4 @@
+module ShouldFail where
+
+n x | True = x+1
+ | False = True