Add new test for #8020.
authorRichard Eisenberg <eir@cis.upenn.edu>
Fri, 2 Aug 2013 11:56:18 +0000 (12:56 +0100)
committerRichard Eisenberg <eir@cis.upenn.edu>
Fri, 2 Aug 2013 11:56:18 +0000 (12:56 +0100)
testsuite/tests/indexed-types/should_compile/T8020.hs [new file with mode: 0644]
testsuite/tests/indexed-types/should_compile/all.T

diff --git a/testsuite/tests/indexed-types/should_compile/T8020.hs b/testsuite/tests/indexed-types/should_compile/T8020.hs
new file mode 100644 (file)
index 0000000..61331c8
--- /dev/null
@@ -0,0 +1,17 @@
+{-# LANGUAGE TypeFamilies #-}
+
+module T8020 where
+
+type family F a b where
+  F (Maybe a) [a] = Int
+  F b c           = Bool
+
+data Proxy a = P
+
+type family G
+
+foo :: Proxy d -> F d d -> Bool
+foo _ = not
+
+bar :: Bool -> Bool
+bar = foo (P :: Proxy G)
index f8f455f..a64c19b 100644 (file)
@@ -226,4 +226,5 @@ test('T8011',
      run_command,
      ['$MAKE -s --no-print-directory T8011'])
 
-test('T8018', normal, compile, [''])
\ No newline at end of file
+test('T8018', normal, compile, [''])
+test('T8020', normal, compile, [''])
\ No newline at end of file