[Issue 7298] New: [CTFE] global static function and delegate literals

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 15 09:46:40 PST 2012


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

           Summary: [CTFE] global static function and delegate literals
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch


--- Comment #0 from timon.gehr at gmx.ch 2012-01-15 09:46:39 PST ---
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

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