summaryrefslogtreecommitdiff
path: root/testsuite/tests/quantified-constraints/T16474.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/quantified-constraints/T16474.hs')
-rw-r--r--testsuite/tests/quantified-constraints/T16474.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/quantified-constraints/T16474.hs b/testsuite/tests/quantified-constraints/T16474.hs
new file mode 100644
index 0000000000..a4968ad444
--- /dev/null
+++ b/testsuite/tests/quantified-constraints/T16474.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE QuantifiedConstraints #-}
+{-# LANGUAGE TypeFamilies #-}
+
+import GHC.Exts (Constraint)
+
+class (forall a. A t a => A t [a]) => B t where
+ type A t a :: Constraint
+
+instance B t => B [t] where
+ type A [t] a = A t a