Bug 7298 – global static function and delegate literals

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-01-15T09:46:00Z
Last change time
2015-07-09T04:13:31Z
Keywords
rejects-valid
Assigned to
nobody
Creator
timon.gehr

Comments

Comment #0 by timon.gehr — 2012-01-15T09:46:39Z
the following code should compile: auto a = (int x)=>x+1; // fail auto b = function(int x)=>x+1; // fine struct Foo {int function(int) f;} auto s = Foo(function(int x)=>x+1); // fail
Comment #1 by clugdbug — 2012-01-16T13:57:10Z
These examples don't involve CTFE. There isn't even any constant folding.
Comment #2 by andrej.mitrovich — 2012-12-10T15:16:33Z
Works in 2.060, fixed?