[Issue 7501] New: Array of function pointers append

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 13 20:50:04 PST 2012


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

           Summary: Array of function pointers append
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2012-02-13 20:50:03 PST ---
void main() {
    bool function(int)[] predicates;
    predicates.length = 1;
    predicates[0] = s => true; // OK
    predicates ~= s => true; // Error
}


DMD 2.058beta3:

test.d(5): Error: expression __lambda4 is void and has no value

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