summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-05-19 14:56:49 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-05-19 14:56:49 +0000
commitda769bad0357a0e927e14cc143bbb11cfc076b9f (patch)
treee42d2708beb6a2be3766ec92bb8791a6efe96c4d
parent7340a8f64b49b6f4724c08675f6477ac379ab82f (diff)
downloadscala-da769bad0357a0e927e14cc143bbb11cfc076b9f.tar.gz
scala-da769bad0357a0e927e14cc143bbb11cfc076b9f.tar.bz2
scala-da769bad0357a0e927e14cc143bbb11cfc076b9f.zip
Added depreciated annotation and comment to kee...
Added depreciated annotation and comment to keep it synchronized with the JVM standard library.
-rw-r--r--src/dotnet-library/scala/List.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dotnet-library/scala/List.scala b/src/dotnet-library/scala/List.scala
index 28228cc2f8..35e35e7bf0 100644
--- a/src/dotnet-library/scala/List.scala
+++ b/src/dotnet-library/scala/List.scala
@@ -447,10 +447,12 @@ sealed abstract class List[+A] extends Seq[A] {
* Add an element <code>x</code> at the end of this list.
* </p>
*
+ * @deprecated Replace uses of <code>l + e</code> with <code>l ::: List(e)</code>.
+ *
* @param x the element to append.
* @return the list with <code>x</code> added at the end.
*/
- def +[B >: A](x: B): List[B] =
+ @deprecated def +[B >: A](x: B): List[B] =
if (isEmpty) List(x)
else {
val buf = new ListBuffer[B]