summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_fail/T18251d.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_fail/T18251d.hs')
-rw-r--r--testsuite/tests/parser/should_fail/T18251d.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/T18251d.hs b/testsuite/tests/parser/should_fail/T18251d.hs
new file mode 100644
index 0000000000..76864b6e72
--- /dev/null
+++ b/testsuite/tests/parser/should_fail/T18251d.hs
@@ -0,0 +1,6 @@
+{-# LANGUAGE ExplicitForAll #-}
+
+module T18251d where
+
+f :: forall a. a -> ()
+f @a _ = ()