[Issue 4312] std.traits.ReturnType no longer accepts function literals
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 26 19:31:35 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4312
--- Comment #3 from Rob Jacques <sandford at jhu.edu> 2011-05-26 19:27:18 PDT ---
I can confirm that non-nested function literals now compile. (i.e. the original
bug report) But nested function literals don't compile (DMD 2.053):
void main(string[] args) {
int b;
writeln( (ReturnType!( function(int a){return a+b;} )).stringof );
}
Error: function hello.main.__funcliteral1 cannot access frame of function D
main
Not too sure if this is a separate issue or not.
--
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