-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subclasses of TypeName
return TypeName
from copy
#1967
Comments
Seems like that would break binary compatibility, so we'd have to postpone the fix until 2.0. |
Are you sure it breaks binary backwards compatibility? Derived from that, I'd say it is a backwards compatible change but not a forward compatible one. This should of course be tested, and I'm not in a rush as I have a work-around. |
It should be binary-compatible to specify a type, it would be an issue the other way around |
Makes sense, thanks! Guess yeah, we should be fine since we'll be changing the return type to subtype. |
If you for example call
copy
on aClassName
, you getTypeName
returned.The
copy
withtags
parameter is overridden in the subclasses and returns the respective subclass.But the
copy
withouttags
parameter always returnsTypeName
.It would be nice if
TypeName
could get a type parameter that the subclass sets to itself and then bothcopy
functions return the actual subclass.The text was updated successfully, but these errors were encountered: