[Issue 4312] New: std.traits.ReturnType no longer accepts function literals
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 14 08:43:53 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4312
Summary: std.traits.ReturnType no longer accepts function
literals
Product: D
Version: future
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: regression
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: sandford at jhu.edu
--- Comment #0 from Rob Jacques <sandford at jhu.edu> 2010-06-14 08:43:52 PDT ---
std.traits.ReturnType no longer accepts function literals. Here is a simplified
test case:
void main(string[] args) {
writeln( (ReturnType!( function(int a){return a;} )).stringof );
return;
}
Results in the error:
Error: function std.traits.__funcliteral1 cannot access frame of function
__funcliteral1
--
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