[Issue 2597] auto return doesn't work for a variety of cases

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 21 06:02:40 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2597





------- Comment #1 from jarrett.billingsley at gmail.com  2009-01-21 08:02 -------
(In reply to comment #0)

> auto d(T)(T x) { return 5; }
> auto e(int x) { return 5; }
> 
> d works, e doesn't. Should it?

Of course it should.  Why does this work:

auto e = (int x) { return 5; }

but not:

auto e(int x) { return 5; }

?

Wouldn't the two use.. more or less the exact same mechanism?


-- 



More information about the Digitalmars-d-bugs mailing list