<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-06-13 9:29 GMT+09:00 Idan Arye via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Friday, 12 June 2015 at 23:26:00 UTC, Yuxuan Shui wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
When there are multiple overloaded functions, whose return type will I get when I use ReturnType? Is there a way I could choose a specific function by its parameter types?<br>
</blockquote>
<br></span>
The return type of the first declared one: <a href="http://dpaste.dzfl.pl/f448ec624592" rel="noreferrer" target="_blank">http://dpaste.dzfl.pl/f448ec624592</a><br>
</blockquote></div><br></div><div class="gmail_extra">That's definitely a bug in current dmd. ReturnType should make error when overloaded function symbol is given.</div><div class="gmail_extra"><br></div><div class="gmail_extra">To pick up one of the overloaded functions, you can use __traits(getOverloads).</div><div class="gmail_extra"><br></div><div class="gmail_extra">Kenji Hara</div></div>