Skip to content

Commit

Permalink
use & instead with as type operator
Browse files Browse the repository at this point in the history
  • Loading branch information
rssh committed May 26, 2024
1 parent 40d7777 commit cbc8948
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions shared/src/main/scala/cps/AsyncShift.scala
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ trait AsyncShiftLowPriority2 extends AsyncShiftLowPriority1 {
import cps.runtime.*


transparent inline given shiftedMapOps[K, V, CC[K, V] <: MapOps[K, V, CC, CC[K, V]] with Iterable[(K, V)]]: MapOpsAsyncShift[K, V, CC, Iterable, CC[K, V]] =
transparent inline given shiftedMapOps[K, V, CC[K, V] <: MapOps[K, V, CC, CC[K, V]] & Iterable[(K, V)]]: MapOpsAsyncShift[K, V, CC, Iterable, CC[K, V]] =
MapOpsAsyncShift[K, V, CC, Iterable, CC[K, V]]()


Expand Down Expand Up @@ -111,7 +111,7 @@ object AsyncShift extends AsyncShiftLowPriority2 {



transparent inline given shiftedImmutableMapOps[K,V,CC[K,V] <: MapOps[K,V,CC,CC[K,V]] with immutable.Iterable[(K,V)]]: MapOpsAsyncShift[K,V,CC,immutable.Iterable,CC[K,V]] =
transparent inline given shiftedImmutableMapOps[K,V,CC[K,V] <: MapOps[K,V,CC,CC[K,V]] & immutable.Iterable[(K,V)]]: MapOpsAsyncShift[K,V,CC,immutable.Iterable,CC[K,V]] =
MapOpsAsyncShift[K,V,CC,immutable.Iterable,CC[K,V]]()

//transparent inline given shiftedList[A]: AsyncShift[scala.collection.immutable.List[A]] =
Expand Down
4 changes: 2 additions & 2 deletions shared/src/main/scala/cps/runtime/MapAsyncShift.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package cps.runtime
import cps._
import scala.collection._

class MapOpsAsyncShift[K,V, CC[KX,VX] <: MapOps[KX,VX,CC,CC[KX,VX]] with CI[(KX,VX)],
class MapOpsAsyncShift[K,V, CC[KX,VX] <: MapOps[KX,VX,CC,CC[KX,VX]] & CI[(KX,VX)],
CI[X] <: Iterable[X] & IterableOps[X,CI,CI[X]],
CKV <: CC[K,V] with PartialFunction[K,V] ] extends
CKV <: CC[K,V] & PartialFunction[K,V] ] extends
IterableOpsAsyncShift[(K,V),CI,CKV]
with PartialFunctionAsyncShiftBase[K,V, CKV]
with AsyncShift[CKV]:
Expand Down

0 comments on commit cbc8948

Please sign in to comment.