Repository : ssh://darcs.haskell.org//srv/darcs/testsuite On branch : master
http://hackage.haskell.org/trac/ghc/changeset/7c49ca4916898939ce912b5bcee200cf11060ff1 >--------------------------------------------------------------- commit 7c49ca4916898939ce912b5bcee200cf11060ff1 Author: Simon Peyton Jones <simo...@microsoft.com> Date: Mon Nov 26 13:55:54 2012 +0000 Test Trac #7404 >--------------------------------------------------------------- tests/polykinds/T7404.hs | 4 ++++ tests/polykinds/T7404.stderr | 4 ++++ tests/polykinds/all.T | 1 + 3 files changed, 9 insertions(+), 0 deletions(-) diff --git a/tests/polykinds/T7404.hs b/tests/polykinds/T7404.hs new file mode 100644 index 0000000..e16c7d2 --- /dev/null +++ b/tests/polykinds/T7404.hs @@ -0,0 +1,4 @@ +{-# LANGUAGE TypeFamilies, PolyKinds, ScopedTypeVariables #-} +module T7404 where + +type family Foo (x :: *) (y :: x) diff --git a/tests/polykinds/T7404.stderr b/tests/polykinds/T7404.stderr new file mode 100644 index 0000000..561cc24 --- /dev/null +++ b/tests/polykinds/T7404.stderr @@ -0,0 +1,4 @@ + +T7404.hs:4:1: + Kind variable also used as type variable: `x' + In the declaration for type family `Foo' diff --git a/tests/polykinds/all.T b/tests/polykinds/all.T index 0328eb9..74ba719 100644 --- a/tests/polykinds/all.T +++ b/tests/polykinds/all.T @@ -80,3 +80,4 @@ test('T7341', normal, compile_fail,['']) test('T7422', normal, compile,['']) test('T7433', normal, compile_fail,['']) test('T7438', normal, run_command, ['$MAKE -s --no-print-directory T7438']) +test('T7404', normal, compile_fail,['']) _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc