summaryrefslogtreecommitdiff
path: root/testsuite/tests/quantified-constraints/T23333.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/quantified-constraints/T23333.hs')
-rw-r--r--testsuite/tests/quantified-constraints/T23333.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/quantified-constraints/T23333.hs b/testsuite/tests/quantified-constraints/T23333.hs
new file mode 100644
index 0000000000..c8fde6d608
--- /dev/null
+++ b/testsuite/tests/quantified-constraints/T23333.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE QuantifiedConstraints #-}
+module T23333 where
+
+foo1 :: (forall y. Bool ~ y) => z -> Bool
+foo1 x = not x
+
+foo2 :: (forall y. y ~ Bool) => z -> Bool
+foo2 x = not x