[Issue 12454] Return type inference does not work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 24 14:26:57 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12454



--- Comment #7 from Yuriy <yuriy.glukhov at gmail.com> 2014-03-24 14:26:53 PDT ---
Ok, i think i gave up too early. Do you know where i could get more info on the
rettype deduction topic? I still can't understand why this feature was not
implemented. From the first glance it seems to me pretty obvious, which
function to select:
1. If there is one function that compiles, select it.
2. Else if there is more than one function that compiles, emit an ambiguity
error. Maybe this logic could have been expanded to something more complex as
cast-path-length etc, but even such basic support would make it really useful.
Please correct me if I'm wrong.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list