Skip to content

Commit

Permalink
use conversion strategy that does not crash on SN
Browse files Browse the repository at this point in the history
  • Loading branch information
rmgk committed Feb 19, 2024
1 parent 6e23632 commit df390cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/RDTs/src/main/scala/kofre/base/Bottom.scala
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ object Bottom {

class ProductBottom[T](pm: Mirror.ProductOf[T], bottoms: Tuple) extends Bottom[T] {
override def empty: T =
type Unbottom[A] = A match { case Bottom[b] => b }
pm.fromProduct(
bottoms.map([β] => (b: β) => (b match { case b: Bottom[_] => b.empty }): Unbottom[β])
Tuple.fromArray:
bottoms.toArray.map[AnyRef](_.asInstanceOf[Bottom[AnyRef]].empty)
)
extension (value: T)
override def isEmpty: Boolean =
Expand Down

0 comments on commit df390cb

Please sign in to comment.