Bug 18785 – No way to get list of overloads for a given template

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2018-04-20T11:42:00Z
Last change time
2020-05-28T12:50:30Z
Assigned to
No Owner
Creator
Simen Kjaeraas

Comments

Comment #0 by simen.kjaras — 2018-04-20T11:42:00Z
__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 by simen.kjaras — 2020-05-28T12:50:30Z
Fixed in 2.081.2