The runtimeClass method of a ClassTag[T] returns a Class[_]. I would expect it to return a Class[T], since we know the ClassTag[T] represents the (runtime) class of T.
Why does it return "any" Class? Is there a fundamental reason for that?
Aucun commentaire:
Enregistrer un commentaire