summaryrefslogtreecommitdiff
path: root/src/dotnet-library
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotnet-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]