summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_fail/T10498b.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_fail/T10498b.hs')
-rw-r--r--testsuite/tests/parser/should_fail/T10498b.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/T10498b.hs b/testsuite/tests/parser/should_fail/T10498b.hs
new file mode 100644
index 0000000000..19b62af5aa
--- /dev/null
+++ b/testsuite/tests/parser/should_fail/T10498b.hs
@@ -0,0 +1,7 @@
+module T10498b where
+
+-- ghc-7.10 would show the unhelpful error message:
+--
+-- T10498b.hs:7:5: parse error in if statement: naked if statement
+
+f = if module then True else False