summaryrefslogtreecommitdiff
path: root/src/build
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-03-24 14:16:49 +0100
committerJason Zaugg <jzaugg@gmail.com>2013-03-24 21:41:37 +0100
commit4af9ff514c531dd02c828cb912059d7aeff9ecb5 (patch)
treef086cfdb9c2f7ea1fa1c777fbf85efe11654bdad /src/build
parent8d537a13999878673b8d18c2429dbd6b97728e72 (diff)
downloadscala-4af9ff514c531dd02c828cb912059d7aeff9ecb5.tar.gz
scala-4af9ff514c531dd02c828cb912059d7aeff9ecb5.tar.bz2
scala-4af9ff514c531dd02c828cb912059d7aeff9ecb5.zip
SI-7294 Deprecate inheritance from TupleN.
The motivation is to provide static warnings in cases like: scala> (1, 2) match { case Seq() => 0; case _ => 1 } res9: Int = 1
Diffstat (limited to 'src/build')
-rw-r--r--src/build/genprod.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/build/genprod.scala b/src/build/genprod.scala
index aec840c262..cd01363cb6 100644
--- a/src/build/genprod.scala
+++ b/src/build/genprod.scala
@@ -319,6 +319,7 @@ class Tuple(val i: Int) extends Group("Tuple") with Arity {
* @constructor Create a new tuple with {i} elements.{idiomatic}
{params}
*/
+@deprecatedInheritance("Tuples will be made final in a future version.", "2.11.0")
case class {className}{covariantArgs}({fields})
extends {Product.className(i)}{invariantArgs}
{{