I am wondering how to create an instance of type alias. More specifically this:
type Graph = scala.collection.mutable.Map[Statement, Statement]
I tried this but I get a type error saying Map[Statement, Statement] is not equivalent to Graph:
val graph: Graph = Map[Statement, Statement]().asInstanceOf[Graph]
Is this (i.e. creating a type alias) anti-pattern in Scala?
scala.collection.immutable.Mapin the second snippet?