Skip to content

SI-7301 Make tuple classes final#5257

Merged
lrytz merged 1 commit intoscala:2.12.xfrom
szeiger:wip/final-tuples
Jul 20, 2016
Merged

SI-7301 Make tuple classes final#5257
lrytz merged 1 commit intoscala:2.12.xfrom
szeiger:wip/final-tuples

Conversation

@szeiger
Copy link
Contributor

@szeiger szeiger commented Jul 5, 2016

The missing parts from the original version of #5021 resurrected to make tuples final after all.

@szeiger szeiger added this to the 2.12.0-RC1 milestone Jul 5, 2016
This includes undoing the special case for `-Xfuture` introduced in
scala#2299 and updating tests to take
the new errors into account.
@szeiger szeiger force-pushed the wip/final-tuples branch from 84db421 to cd9240e Compare July 7, 2016 19:37
@szeiger
Copy link
Contributor Author

szeiger commented Jul 7, 2016

Review by @retronym (who authored #2299).

Does run/t3888.scala still make sense in the new form or should it be removed (because it tested a special case in the pattern matcher for tuples)?

@lrytz
Copy link
Member

lrytz commented Jul 20, 2016

LGTM - i think it doesn't hurt to leave the test in.

@lrytz lrytz merged commit 5ddb0bb into scala:2.12.x Jul 20, 2016
@adriaanm
Copy link
Contributor

We'll need to patch twitter-util to get the community build going again (https://scala-ci.typesafe.com/view/scala-2.12.x/job/scala-2.12.x-integrate-community-build/456/consoleFull):

[twitter-util] [error] /home/jenkins/workspace/scala-2.12.x-integrate-community-build/target-0.9.5/project-builds/twitter-util-3ecf6d03ea63cea0a4fd70085fc0a7dee036c0ca/util-core/src/main/scala/com/twitter/concurrent/ConcurrentMultiMap.scala:12: illegal inheritance from final class Tuple2
[twitter-util] [error]   extends Tuple2[K, Option[V]](k, v)
[twitter-util] [error]           ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants