From aac8bba0c25aef3c2e410d1f28818c8b1fe9266f Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Thu, 31 May 2007 07:59:38 +0000 Subject: fixed bug in checkKindBounds (type parameters d... fixed bug in checkKindBounds (type parameters defined outside the abstract type that was being checked, were not properly transformed using asSeenFrom) -- regression test included in commit --- test/files/pos/tcpoly_checkkinds_mix.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/files/pos/tcpoly_checkkinds_mix.scala (limited to 'test') diff --git a/test/files/pos/tcpoly_checkkinds_mix.scala b/test/files/pos/tcpoly_checkkinds_mix.scala new file mode 100644 index 0000000000..27bf11a2ef --- /dev/null +++ b/test/files/pos/tcpoly_checkkinds_mix.scala @@ -0,0 +1,10 @@ +trait Iterable[A <: Bound[A], Bound[_]] { + type MyType[x <: Bound[x]] <: Iterable[x, Bound] + def map[B <: Bound[B]](f: A => B): MyType[B] + def flatMap[B <: Bound[B]](f: A => MyType[B]): MyType[B] + def filter(p: A => Boolean): MyType[A] +} + +trait OrderedSet[T <: Ordered[T]] extends Iterable[T, Ordered] { + type MyType[x <: Ordered[x]] = OrderedSet[x] +} \ No newline at end of file -- cgit v1.2.3