From da769bad0357a0e927e14cc143bbb11cfc076b9f Mon Sep 17 00:00:00 2001 From: Geoffrey Washburn Date: Mon, 19 May 2008 14:56:49 +0000 Subject: Added depreciated annotation and comment to kee... Added depreciated annotation and comment to keep it synchronized with the JVM standard library. --- src/dotnet-library/scala/List.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/dotnet-library') 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 x at the end of this list. *

* + * @deprecated Replace uses of l + e with l ::: List(e). + * * @param x the element to append. * @return the list with x 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] -- cgit v1.2.3