[Issue 4915] auto return type escapes function purity

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 9 00:15:35 PST 2010


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



--- Comment #3 from Don <clugdbug at yahoo.com.au> 2010-11-09 00:14:32 PST ---
Test case (should compile with no errors):

pure nothrow @safe auto bug4915a() {  return 0; }
pure nothrow @safe int  bug4915b() { return bug4915a(); }

void bug4915c()
{
    pure nothrow @safe int d() { return 0; }
    int e() pure nothrow @safe { return d(); }    
}

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