summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_fail/readFail006.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_fail/readFail006.hs')
-rw-r--r--testsuite/tests/parser/should_fail/readFail006.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/readFail006.hs b/testsuite/tests/parser/should_fail/readFail006.hs
new file mode 100644
index 0000000000..fa3d867c67
--- /dev/null
+++ b/testsuite/tests/parser/should_fail/readFail006.hs
@@ -0,0 +1,9 @@
+-- !!! Using pattern syntax on RHS
+module ShouldFail where
+
+f :: Int -> Int
+f x = _
+
+g :: Int -> Int
+g x = 2 + 2@_
+