From a98f3db468ad09c4f3cd61e9146c333b5e9bbf75 Mon Sep 17 00:00:00 2001 From: Tim Spence Date: Fri, 3 May 2024 10:22:22 +0100 Subject: [PATCH] Make scala 3 happy part 3 --- .../test/scala/io/github/timwspence/cats/stm/STMLaws.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/laws/src/test/scala/io/github/timwspence/cats/stm/STMLaws.scala b/laws/src/test/scala/io/github/timwspence/cats/stm/STMLaws.scala index 0bf86124..f8c8a0d2 100644 --- a/laws/src/test/scala/io/github/timwspence/cats/stm/STMLaws.scala +++ b/laws/src/test/scala/io/github/timwspence/cats/stm/STMLaws.scala @@ -42,13 +42,13 @@ trait STMLaws extends HasSTM { (tvar.set(a) >> stm.abort[A](error)) <-> stm.abort[A](error) def retryOrElse[A](txn: Txn[A]) = - (stm.retry[A] orElse txn) <-> txn + (stm.retry[A].orElse(txn)) <-> txn def orElseRetry[A](txn: Txn[A]) = - (txn orElse stm.retry[A]) <-> txn + (txn.orElse(stm.retry[A])) <-> txn def abortOrElse[A](error: Throwable, txn: Txn[A]) = - (stm.abort[A](error) orElse txn) <-> stm.abort[A](error) + (stm.abort[A](error).orElse(txn)) <-> stm.abort[A](error) }