[Issue 11727] Repeated error message with using forward referenced enum as variable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 12 20:31:17 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11727
--- Comment #6 from Kenji Hara <k.hara.pg at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list