summaryrefslogtreecommitdiff
path: root/test/files/pos/tcpoly_bounds1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/tcpoly_bounds1.scala')
-rw-r--r--test/files/pos/tcpoly_bounds1.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/files/pos/tcpoly_bounds1.scala b/test/files/pos/tcpoly_bounds1.scala
index 63263cb152..4f52f55cb6 100644
--- a/test/files/pos/tcpoly_bounds1.scala
+++ b/test/files/pos/tcpoly_bounds1.scala
@@ -1,7 +1,9 @@
-class Foo[t[x]<: Tuple2[Int, x]]
+case class T2[+T1, +T2](_1: T1, _2: T2) extends Product2[T1, T2]
+
+class Foo[t[x]<: T2[Int, x]]
//
-class MyPair[z](a: Int, b: z) extends Tuple2[Int, z](a,b)
+class MyPair[z](a: Int, b: z) extends T2[Int, z](a,b)
object foo extends Foo[MyPair]