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
i2663 demonstrates that we do not always have a complete result type
for the `apply` method of an enum case. In that case our only recourse
is to add a generic widening method that upcasts the enum case class to the
enum base class.
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Jan 24, 2018
i2663 demonstrates that we do not always have a complete result type
for the `apply` method of an enum case. In that case our only recourse
is to add a generic widening method that upcasts the enum case class to the
enum base class.
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Jan 24, 2018
i2663 demonstrates that we do not always have a complete result type
for the `apply` method of an enum case. In that case our only recourse
is to add a generic widening method that upcasts the enum case class to the
enum base class.
This works:
But this doesn't:
Manually adding the missing type parameter works:
The text was updated successfully, but these errors were encountered: