diff options
Diffstat (limited to 'testsuite/tests')
-rw-r--r-- | testsuite/tests/quantified-constraints/T23333.hs | 8 | ||||
-rw-r--r-- | testsuite/tests/quantified-constraints/all.T | 2 |
2 files changed, 9 insertions, 1 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 diff --git a/testsuite/tests/quantified-constraints/all.T b/testsuite/tests/quantified-constraints/all.T index d3bfe6e07e..bea86c5e8f 100644 --- a/testsuite/tests/quantified-constraints/all.T +++ b/testsuite/tests/quantified-constraints/all.T @@ -41,4 +41,4 @@ test('T22216d', normal, compile, ['']) test('T22216e', normal, compile, ['']) test('T22223', normal, compile, ['']) test('T19690', normal, compile_fail, ['']) - +test('T23333', normal, compile, ['']) |