From 10f8c21c84988b56af8d71291235d8775f7eb873 Mon Sep 17 00:00:00 2001 From: Marissa Date: Mon, 4 Sep 2023 00:15:38 -0400 Subject: [PATCH] Stop old `#::` from being called --- .../scala-2.13+/cats/data/NonEmptyLazyList.scala | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/src/main/scala-2.13+/cats/data/NonEmptyLazyList.scala b/core/src/main/scala-2.13+/cats/data/NonEmptyLazyList.scala index 3c9fcc61e5..580cd396db 100644 --- a/core/src/main/scala-2.13+/cats/data/NonEmptyLazyList.scala +++ b/core/src/main/scala-2.13+/cats/data/NonEmptyLazyList.scala @@ -87,20 +87,20 @@ object NonEmptyLazyList extends NonEmptyLazyListInstances { // reused, and we don't want to re-evaluate `mkLL` private[this] lazy val ll = mkLL() - def #::[B >: A](elem: => B): NonEmptyLazyList[B] = + def #::[AA >: A](elem: => AA): NonEmptyLazyList[AA] = create(elem #:: ll) - def #:::[B >: A](prefix: => LazyList[B]): Maybe[B] = + def #:::[AA >: A](prefix: => LazyList[AA]): Maybe[AA] = new Maybe(() => prefix #::: ll) - def #:::[B >: A](prefix: => NonEmptyLazyList[B])(implicit d: DummyImplicit): NonEmptyLazyList[B] = + def #:::[AA >: A](prefix: => NonEmptyLazyList[AA])(implicit d: DummyImplicit): NonEmptyLazyList[AA] = create(prefix.toLazyList #::: ll) } final class Deferrer[A] private[NonEmptyLazyList] (private val nell: () => NonEmptyLazyList[A]) extends AnyVal { - def #::[B >: A](elem: => B): NonEmptyLazyList[B] = + def #::[AA >: A](elem: => AA): NonEmptyLazyList[AA] = create(elem #:: nell().toLazyList) - def #:::[B >: A](prefix: => LazyList[B]): NonEmptyLazyList[B] = + def #:::[AA >: A](prefix: => LazyList[AA]): NonEmptyLazyList[AA] = create(prefix #::: nell().toLazyList) - def #:::[B >: A](prefix: => NonEmptyLazyList[B])(implicit d: DummyImplicit): NonEmptyLazyList[B] = + def #:::[AA >: A](prefix: => NonEmptyLazyList[AA])(implicit d: DummyImplicit): NonEmptyLazyList[AA] = create(prefix.toLazyList #::: nell().toLazyList) } @@ -155,7 +155,7 @@ class NonEmptyLazyListOps[A](private val value: NonEmptyLazyList[A]) prepend(a) @deprecated("use Deferrer construction instead") - final def #::[AA >: A](a: AA): NonEmptyLazyList[AA] = + final def #::[AA >: A]()(a: AA): NonEmptyLazyList[AA] = prepend(a) /**