-
Notifications
You must be signed in to change notification settings - Fork 124
"Extends" for generic types isn't shown. #1027
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
Comments
Thanks for the report! |
@floitschG , the info about the generics is shown in the title. |
Might be that the output changed, but it's not really great yet. When I look for a constructor, I don't see the title anymore (I tried with my neighbor and he only found the generic type when I pointed out that the class is generic). |
Would adding this information to the inheritance chain be sufficient? |
Probably sufficient, but you really want to see it with the constructors too. That's when you have to provide the generic type. |
Apologies, I'm not fully understanding what the recommended fix is here. I see that part of the solution is to change |
Yes. that would be a good start. As a second step, we should improve the documentation for constructors:. |
Some screenshots for a proposed solution are in PR #1556. |
Take https://api.dartlang.org/stable/dart-collection/LinkedList-class.html
The generic type
E
must extendLinkedListEntry
. However that is not shown in the documentation.In fact the LinkedList-signature is:
class LinkedList<E extends LinkedListEntry<E>> ...
The text was updated successfully, but these errors were encountered: