[Issue 4029] New: CTFE: cannot invoke delegate returned from function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 30 00:30:51 PDT 2010


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

           Summary: CTFE: cannot invoke delegate returned from function
           Product: D
           Version: 1.020
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at yahoo.com.au> 2010-03-30 00:30:49 PDT ---
string delegate() bug4029a()
{
    return { return "abc"; };
}

string bug4029()
{
   return bug4029a()();
}

static assert(bug4029());

----
bug.d(8): Error: cannot evaluate bug4029a()() at compile time
bug.d(11): Error: cannot evaluate bug4029() at compile time
bug.d(11): Error: static assert  (bug4029()) is not evaluatable at compile time

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