diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/List.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/List.scala b/src/library/scala/List.scala index 71109f2fe8..73d633515a 100644 --- a/src/library/scala/List.scala +++ b/src/library/scala/List.scala @@ -444,7 +444,7 @@ sealed abstract class List[+a] extends Seq[a] { */ def reverse_:::[b >: a](prefix: List[b]): List[b] = prefix match { case Nil => this - case head :: tail => tail.reverse_:::(head :: this) + case head :: tail => (head :: this).reverse_:::(tail) } /** Returns the number of elements in the list. |