Allow @generic function to return new type inherited from T #1513
paul-reilly
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I don't know if this is even possible, but it's always worth asking to see if it is!
So currently, we can have:
Now, if we could somehow enhance the
@generic
annotation of the type creation function we could remove the need for that last annotation:This and #1505 would be good for various OOPy patterns.
Beta Was this translation helpful? Give feedback.
All reactions