summaryrefslogtreecommitdiff
path: root/testsuite/tests/partial-sigs/should_compile/T16762d.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/partial-sigs/should_compile/T16762d.hs')
-rw-r--r--testsuite/tests/partial-sigs/should_compile/T16762d.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/partial-sigs/should_compile/T16762d.hs b/testsuite/tests/partial-sigs/should_compile/T16762d.hs
new file mode 100644
index 0000000000..02c2c57fcd
--- /dev/null
+++ b/testsuite/tests/partial-sigs/should_compile/T16762d.hs
@@ -0,0 +1,14 @@
+{-# LANGUAGE TypeFamilies, PolyKinds, ExplicitForAll #-}
+
+module Foo where
+
+import Data.Kind
+import Data.Proxy
+
+
+type family F (a::k) (b::k)
+
+-- Tricky because we can't quantify the '_' variable outside.
+-- See Note [Generalising in tcTyFamInstEqnGuts] in TyCl
+
+type instance forall k (x::k). F x _ = Int