summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_fail/readFail024.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_fail/readFail024.hs')
-rw-r--r--testsuite/tests/parser/should_fail/readFail024.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/readFail024.hs b/testsuite/tests/parser/should_fail/readFail024.hs
new file mode 100644
index 0000000000..70f38329ae
--- /dev/null
+++ b/testsuite/tests/parser/should_fail/readFail024.hs
@@ -0,0 +1,5 @@
+module ShouldFail where
+
+-- !!! this is not legal Haskell 98, but GHC parses it
+f = f where g = g where
+ h = h