summaryrefslogtreecommitdiff
path: root/test/files/run/t3888.scala
diff options
context:
space:
mode:
authorStefan Zeiger <szeiger@novocode.com>2016-07-05 12:37:04 +0200
committerStefan Zeiger <szeiger@novocode.com>2016-07-07 21:37:18 +0200
commitcd9240ed524e69f01fcd872b9791754102c6530b (patch)
tree8b1a0c01b2181b55403cc7b382d1a09ec1dbea26 /test/files/run/t3888.scala
parent6612ba010b0e70c53550d1e47141c8dc89a55f23 (diff)
downloadscala-cd9240ed524e69f01fcd872b9791754102c6530b.tar.gz
scala-cd9240ed524e69f01fcd872b9791754102c6530b.tar.bz2
scala-cd9240ed524e69f01fcd872b9791754102c6530b.zip
SI-7301 Make tuple classes final
This includes undoing the special case for `-Xfuture` introduced in https://github.com/scala/scala/pull/2299 and updating tests to take the new errors into account.
Diffstat (limited to 'test/files/run/t3888.scala')
-rw-r--r--test/files/run/t3888.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/files/run/t3888.scala b/test/files/run/t3888.scala
index 8701b42ff0..b1932ffb20 100644
--- a/test/files/run/t3888.scala
+++ b/test/files/run/t3888.scala
@@ -1,3 +1,4 @@
+case class Tuple2[+T1, +T2](_1: T1, _2: T2) extends Product2[T1, T2]
// in a match, which notion of equals prevails?
// extending Tuple doesn't seem to be at issue here.
@@ -7,13 +8,13 @@ object Test {
private[this] val T2 = T1
def m1 =
- (1, 2) match {
+ Tuple2(1, 2) match {
case T1 => true
case _ => false
}
def m2 =
- (1, 2) match {
+ Tuple2(1, 2) match {
case T2 => true
case _ => false
}