[Issue 2634] Function literals are non-constant.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 11 14:38:41 PST 2011


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



--- Comment #2 from Taylor Everding <dmttding at gmail.com> 2011-03-11 14:35:35 PST ---
It may be useful to know that 

void main() {
  auto a = function void() {};
}

compiles correctly, but when a is moved outside main the Error occurs.

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