[Issue 10842] auto return function not executed depending on how it's called
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 17 19:09:06 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10842
--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-08-17 19:09:05 PDT ---
(In reply to comment #2)
> Reduced:
Actually the bug is unrelated to auto, but instead related to typeof(null):
-----
typeof(null) ret1()
{
assert(0); // not thrown
return null;
}
string test1()
{
return ret1();
}
void main()
{
test1();
}
-----
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list