summaryrefslogtreecommitdiff
path: root/test/files/pos/tcpoly_checkkinds_mix.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2007-05-31 07:59:38 +0000
committerAdriaan Moors <adriaan.moors@epfl.ch>2007-05-31 07:59:38 +0000
commitaac8bba0c25aef3c2e410d1f28818c8b1fe9266f (patch)
treef734b86613821bedfb5c3aa048ada5b1c9c3f53d /test/files/pos/tcpoly_checkkinds_mix.scala
parente78dcdc4c5b920d686f69aca8e9b9670054125bb (diff)
downloadscala-aac8bba0c25aef3c2e410d1f28818c8b1fe9266f.tar.gz
scala-aac8bba0c25aef3c2e410d1f28818c8b1fe9266f.tar.bz2
scala-aac8bba0c25aef3c2e410d1f28818c8b1fe9266f.zip
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
Diffstat (limited to 'test/files/pos/tcpoly_checkkinds_mix.scala')
-rw-r--r--test/files/pos/tcpoly_checkkinds_mix.scala10
1 files changed, 10 insertions, 0 deletions
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