Repository : ssh://darcs.haskell.org//srv/darcs/testsuite On branch : master
http://hackage.haskell.org/trac/ghc/changeset/9a35237ec0b5134cb70f5ea21edfcf90132ade3b >--------------------------------------------------------------- commit 9a35237ec0b5134cb70f5ea21edfcf90132ade3b Author: Simon Peyton Jones <simo...@microsoft.com> Date: Mon Nov 26 12:23:04 2012 +0000 Test Trac #7451 >--------------------------------------------------------------- tests/typecheck/should_compile/T7451.hs | 12 ++++++++++++ tests/typecheck/should_compile/all.T | 1 + 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/tests/typecheck/should_compile/T7451.hs b/tests/typecheck/should_compile/T7451.hs new file mode 100644 index 0000000..5684813 --- /dev/null +++ b/tests/typecheck/should_compile/T7451.hs @@ -0,0 +1,12 @@ +module T6117a where + +-- Tests that Lint does not complain about +-- a mis-match between * and Constraint + +class B a where + b :: a + +newtype Additive a = Additive a + +instance B a => B (Additive a) where + b = Additive b diff --git a/tests/typecheck/should_compile/all.T b/tests/typecheck/should_compile/all.T index 6240962..be74f77 100644 --- a/tests/typecheck/should_compile/all.T +++ b/tests/typecheck/should_compile/all.T @@ -389,3 +389,4 @@ test('T7196', normal, compile, ['']) test('T7050', normal, compile, ['']) test('T7312', normal, compile, ['']) test('T7384', normal, compile, ['']) +test('T7451', normal, compile, ['']) _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc