summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/T2157.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/indexed-types/should_fail/T2157.hs')
-rw-r--r--testsuite/tests/indexed-types/should_fail/T2157.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/T2157.hs b/testsuite/tests/indexed-types/should_fail/T2157.hs
new file mode 100644
index 0000000000..c9e562051e
--- /dev/null
+++ b/testsuite/tests/indexed-types/should_fail/T2157.hs
@@ -0,0 +1,7 @@
+{-# LANGUAGE TypeFamilies, LiberalTypeSynonyms #-}
+
+module T2157 where
+
+type S a b = a
+type family F a :: * -> *
+type instance F a = S a