[commit: testsuite] master: Test Trac #7384 (620dfc4)

Simon Peyton Jones <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/620dfc4ec9659cca3660f33171803a372e1ce312

>---------------------------------------------------------------

commit 620dfc4ec9659cca3660f33171803a372e1ce312
Author: Simon Peyton Jones <[email protected]>
Date:   Tue Nov 6 16:23:42 2012 +0000

    Test Trac #7384

>---------------------------------------------------------------

 tests/typecheck/should_compile/T7384.hs |   11 +++++++++++
 tests/typecheck/should_compile/all.T    |    1 +
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/tests/typecheck/should_compile/T7384.hs b/tests/typecheck/should_compile/T7384.hs
new file mode 100644
index 0000000..1d81144
--- /dev/null
+++ b/tests/typecheck/should_compile/T7384.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE FunctionalDependencies, PolyKinds #-}
+
+module T7384 where
+
+class Baz a b | a -> b where
+   bar :: a -> ()
+
+instance Baz Bool Bool where
+   bar _ = ()
+
+foo = bar False
diff --git a/tests/typecheck/should_compile/all.T b/tests/typecheck/should_compile/all.T
index 74b0c29..6240962 100644
--- a/tests/typecheck/should_compile/all.T
+++ b/tests/typecheck/should_compile/all.T
@@ -388,3 +388,4 @@ test('T7173', normal, compile, [''])
 test('T7196', normal, compile, [''])
 test('T7050', normal, compile, [''])
 test('T7312', normal, compile, [''])
+test('T7384', normal, compile, [''])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.