summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_compile/T4358.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/indexed-types/should_compile/T4358.hs')
-rw-r--r--testsuite/tests/indexed-types/should_compile/T4358.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_compile/T4358.hs b/testsuite/tests/indexed-types/should_compile/T4358.hs
new file mode 100644
index 0000000000..92ac3a743b
--- /dev/null
+++ b/testsuite/tests/indexed-types/should_compile/T4358.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE TypeFamilies, Rank2Types, FlexibleContexts #-}
+
+module T4358 where
+
+type family T a
+
+t2 :: forall a. ((T a ~ a) => a) -> a
+t2 = t
+
+t :: forall a. ((T a ~ a) => a) -> a
+t = undefined