https://d.puremagic.com/issues/show_bug.cgi?id=12171

           Summary: Refused UFCS call for a sum()
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2014-02-15 01:52:12 PST ---
import std.algorithm: sum;
void main() {
    enum int[] arr1 = [10, 20];
    int[arr1.sum] arr2;
}


dmd 2.065beta3 gives:

test.d(4,19): Error: no property 'sum' for type 'int[]'

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to