[commit: testsuite] master: Test #5481 (ee78629)
Max Bolingbroke
batterseapower at hotmail.com
Sun Sep 11 19:45:41 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/testsuite
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/ee786290a7cda42517266df9e76dc85c64eb2e4f
>---------------------------------------------------------------
commit ee786290a7cda42517266df9e76dc85c64eb2e4f
Author: Max Bolingbroke <batterseapower at hotmail.com>
Date: Sun Sep 11 17:09:55 2011 +0100
Test #5481
>---------------------------------------------------------------
tests/typecheck/should_compile/T5481.hs | 8 ++++++++
tests/typecheck/should_compile/all.T | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/tests/typecheck/should_compile/T5481.hs b/tests/typecheck/should_compile/T5481.hs
new file mode 100644
index 0000000..636a587
--- /dev/null
+++ b/tests/typecheck/should_compile/T5481.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE TypeFamilies, MultiParamTypeClasses #-}
+module T5481 where
+
+class Foo a b where
+ type X a
+ type X a = b
+ type Y b
+ type Y b = a
diff --git a/tests/typecheck/should_compile/all.T b/tests/typecheck/should_compile/all.T
index e185708..c3ba163 100644
--- a/tests/typecheck/should_compile/all.T
+++ b/tests/typecheck/should_compile/all.T
@@ -357,3 +357,4 @@ test('T5051', normal, compile, [''])
test('T3018', normal, compile, [''])
test('T5032', normal, compile, [''])
test('T2357', normal, compile, [''])
+test('T5481', normal, compile, [''])
More information about the Cvs-ghc
mailing list