diff options
Diffstat (limited to 'testsuite/tests/indexed-types/should_compile/T3826.hs')
-rw-r--r-- | testsuite/tests/indexed-types/should_compile/T3826.hs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_compile/T3826.hs b/testsuite/tests/indexed-types/should_compile/T3826.hs new file mode 100644 index 0000000000..39c597f69c --- /dev/null +++ b/testsuite/tests/indexed-types/should_compile/T3826.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE TypeFamilies #-}
+
+module T3826 where
+
+class C a where
+ type E a
+ c :: E a -> a -> a
+
+data T a = T a
+
+instance C (T a) where
+ type E (T a) = a
+ c x (T _) = T x
+
+f t@(T x) = c x t
|