diff options
-rw-r--r-- | src/dotnet-library/scala/List.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotnet-library/scala/List.scala b/src/dotnet-library/scala/List.scala index dea3a9a255..28228cc2f8 100644 --- a/src/dotnet-library/scala/List.scala +++ b/src/dotnet-library/scala/List.scala @@ -450,7 +450,7 @@ sealed abstract class List[+A] extends Seq[A] { * @param x the element to append. * @return the list with <code>x</code> added at the end. */ - override def +[B >: A](x: B): List[B] = + def +[B >: A](x: B): List[B] = if (isEmpty) List(x) else { val buf = new ListBuffer[B] |