[Issue 5601] A template forward reference error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 22 02:52:40 PST 2013


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



--- Comment #4 from bearophile_hugs at eml.cc 2013-11-22 02:52:35 PST ---
(In reply to comment #3)

> Before function body semantic finished, getting type
> of auto function will cause forward reference error since its return type is
> not determined.

Can't the type inferencer become a little smarter and see that the return type
of foo is something defined in terms of itself, but it's also an int, and so
decide it's an int?

-- 
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