http://d.puremagic.com/issues/show_bug.cgi?id=8780
Summary: std.traits.ReturnType of overloaded functions Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: luka8...@owave.net --- Comment #0 from luka8088 <luka8...@owave.net> 2012-10-08 03:29:06 PDT --- module program; import std.stdio; import std.traits; int f1 () { return 1; } string f1 () { return "2"; } void main () { ReturnType!(f1) v1; writeln(typeid(typeof(v1))); // int // chould this lead to unexpected behavior ? } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------