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



--- Comment #6 from Kenji Hara <[email protected]> 2013-12-12 20:31:15 PST ---
Now the OP code:

auto returnEnum()
{
    enum n;
    return n;  // Line 4
}
void main()
{
    assert(returnEnum() == 0);
}

Prints:

test.d(4): Error: type n has no value

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to