D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 18785 - No way to get list of overloads for a given template
Summary: No way to get list of overloads for a given template
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P1 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-20 11:42 UTC by Simen Kjaeraas
Modified: 2020-05-28 12:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Simen Kjaeraas 2018-04-20 11:42:00 UTC
__traits(getOverloads) only works on regular functions, and do not include templated overloads. Simply adding them to getOverloads's result would be a breaking change. I therefore propose adding a new trait - getAllOverloads - that returns all symbols in an overload set, be they types, templates, functions, or otherwise.
Comment 1 Simen Kjaeraas 2020-05-28 12:50:30 UTC
Fixed in 2.081.2