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: nob...@puremagic.com
        ReportedBy: clugd...@yahoo.com.au


--- Comment #0 from Don <clugd...@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: -------

Reply via email to