diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2013-01-02 12:59:53 +0000 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2013-01-02 12:59:53 +0000 |
commit | 5e1d9d557524e00c0697f964f39e2eea875ef78a (patch) | |
tree | f1926d2eadca24e8e7d6910e09c839e2038e8fe9 | |
parent | 4e6bbb7672b1dfc5b488103aa437cf2c06ab5575 (diff) | |
parent | 7041e9cc0d73d6c56824b79e231e9a73c1918cf1 (diff) | |
download | haskell-5e1d9d557524e00c0697f964f39e2eea875ef78a.tar.gz |
Merge branch 'master' of http://darcs.haskell.org/testsuite
-rw-r--r-- | testsuite/tests/indexed-types/should_fail/T7536.hs | 9 | ||||
-rw-r--r-- | testsuite/tests/indexed-types/should_fail/T7536.stderr | 5 | ||||
-rw-r--r-- | testsuite/tests/indexed-types/should_fail/all.T | 5 |
3 files changed, 15 insertions, 4 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/T7536.hs b/testsuite/tests/indexed-types/should_fail/T7536.hs new file mode 100644 index 0000000000..a541bda87b --- /dev/null +++ b/testsuite/tests/indexed-types/should_fail/T7536.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE TypeFamilies #-} + +module T7536 where + +type T v = Int + +type family TF a :: * +type instance TF (T a) = a + diff --git a/testsuite/tests/indexed-types/should_fail/T7536.stderr b/testsuite/tests/indexed-types/should_fail/T7536.stderr new file mode 100644 index 0000000000..faea85e91e --- /dev/null +++ b/testsuite/tests/indexed-types/should_fail/T7536.stderr @@ -0,0 +1,5 @@ + +T7536.hs:8:15: + Family instance purports to bind type variable `a' + but the real LHS (expanding synonyms) is: TF Int = ... + In the type instance declaration for `TF' diff --git a/testsuite/tests/indexed-types/should_fail/all.T b/testsuite/tests/indexed-types/should_fail/all.T index eaf1b19705..4cd78ce127 100644 --- a/testsuite/tests/indexed-types/should_fail/all.T +++ b/testsuite/tests/indexed-types/should_fail/all.T @@ -93,7 +93,4 @@ test('T7354a', extra_clean(['T7354b.o', 'T7354b.hi']), run_command, ['$MAKE -s --no-print-directory T7354a']) - - - - +test('T7536', normal, compile_fail, ['']) |