Re: getOverloads trait doesn't work on functions

2019-04-13 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 13 April 2019 at 19:02:42 UTC, faissaloo wrote: I'm trying to use: ``` __traits(getOverloads, fn) ``` But I get the error expected 2 arguments for getOverloads but had 1 It expects the parent and the name rather than an instance of the function. Try __traits(getOverloads, __t

getOverloads trait doesn't work on functions

2019-04-13 Thread faissaloo via Digitalmars-d-learn
I'm trying to use: ``` __traits(getOverloads, fn) ``` But I get the error expected 2 arguments for getOverloads but had 1 Is there an alternative I can use?