You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@milessabin already suggested in gitter that even if in theory this could be possible, the compiler doesn't allow it at the moment: in principle the match on the S values and the equation between S and T could be used to refine T, but the Scala compiler doesn't do that at the moment.
The text was updated successfully, but these errors were encountered:
I can get a generic representation of my
Base[T]
ifBase
is sealed andT
is bounded by another sealed trait:However, if
T
is a type member, I can't do it anymore:@milessabin already suggested in gitter that even if in theory this could be possible, the compiler doesn't allow it at the moment:
in principle the match on the S values and the equation between S and T could be used to refine T, but the Scala compiler doesn't do that at the moment.
The text was updated successfully, but these errors were encountered: