diff options
Diffstat (limited to 'testsuite/tests/typecheck')
-rw-r--r-- | testsuite/tests/typecheck/should_compile/T20582.hs | 6 | ||||
-rw-r--r-- | testsuite/tests/typecheck/should_compile/all.T | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/T20582.hs b/testsuite/tests/typecheck/should_compile/T20582.hs new file mode 100644 index 0000000000..9b49787be6 --- /dev/null +++ b/testsuite/tests/typecheck/should_compile/T20582.hs @@ -0,0 +1,6 @@ +{-# LANGUAGE QuantifiedConstraints #-} + +module T20582 where + +f :: (forall a. Ord (m a), forall a. Semigroup a => Eq (m a)) => m Int +f = f diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T index 9fbf11b641..d5faf615b4 100644 --- a/testsuite/tests/typecheck/should_compile/all.T +++ b/testsuite/tests/typecheck/should_compile/all.T @@ -573,6 +573,7 @@ test('T13490', normal, compile, ['']) test('T13474', normal, compile, ['']) test('T13524', normal, compile, ['']) test('T20602', normal, compile, ['']) +test('T20582', normal, compile, ['']) test('T13509', normal, compile, ['']) test('T13526', normal, compile, ['']) test('T13594', normal, compile_fail, ['']) |