I'm writing some macros in Scala.
Let's assume I have some Type, e.g. typeOf[Map[String,Set[Int]]] and a similar type where some of its parts have been replaced with undetermined type parameters, e.g. typeOf[Map[String,Set[T]]] where T is unknown.
How do I match these two types with each other to find out that T is Int?
Aucun commentaire:
Enregistrer un commentaire