[Issue 4785] auto return of a function with in contract

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 10 06:57:47 PDT 2011


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


Maksim Zholudev <maximzms at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maximzms at gmail.com


--- Comment #3 from Maksim Zholudev <maximzms at gmail.com> 2011-06-10 06:53:11 PDT ---
DMD v2.053 on Linux do not accept the following code:

----------
auto F1() {return 0;} // OK

int F2() body {return 0;} // OK

auto F3() body {return 0;} // ERROR: function declaration without return
type...

void main()
{
   F1();
   F2();
   F3();
}
----------

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