'How can I create and use a type alias with a fixed generic parameter in Scala3?

I'm trying to define and use a type alias in Scala3 for scala.collection.immutable.Set[scala.collection.immutable.BitSet] like so:

import scala.collection.immutable.{BitSet => Set, Set => SSet}

object Main extends App {
  type Algebra = SSet[Set]

  val omega = Set(1,2,3,4,5,6)
  val empty = Set()
  val A = Algebra(omega, empty) // error: Not found: Algebra
}

I think I'm missing something very basic here.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source