I think it fails because we always expect the output type to be equal to the generic type, although we always return a User.
Ah, of course.
Mark the output objects as T
I think this is a bad option, as it's possible that you would be now expecting an extra field to be there, that no longer exists.
Agreed, this is why I marked the first option as preferred :P
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Ah, of course.
I think this is a bad option, as it's possible that you would be now expecting an extra field to be there, that no longer exists.
Agreed, this is why I marked the first option as preferred :P