diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2016-07-20 16:41:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-20 16:41:40 +0200 |
commit | 5ddb0bbe36e7caa44c9442b059d103f7f4e75331 (patch) | |
tree | 8fe2193790978f66af5e95055e3bf6ac97af307b /test/files/run | |
parent | 2f75e051a181d4f8618746953ec07226b556fdb3 (diff) | |
parent | cd9240ed524e69f01fcd872b9791754102c6530b (diff) | |
download | scala-5ddb0bbe36e7caa44c9442b059d103f7f4e75331.tar.gz scala-5ddb0bbe36e7caa44c9442b059d103f7f4e75331.tar.bz2 scala-5ddb0bbe36e7caa44c9442b059d103f7f4e75331.zip |
Merge pull request #5257 from szeiger/wip/final-tuples
SI-7301 Make tuple classes final
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t3888.check | 1 | ||||
-rw-r--r-- | test/files/run/t3888.scala | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/files/run/t3888.check b/test/files/run/t3888.check index 6fda32d713..e69de29bb2 100644 --- a/test/files/run/t3888.check +++ b/test/files/run/t3888.check @@ -1 +0,0 @@ -warning: there was one deprecation warning (since 2.11.0); re-run with -deprecation for details 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 } |