[Issue 12171] New: Refused UFCS call for a sum()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 15 01:52:17 PST 2014


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: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 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: -------


More information about the Digitalmars-d-bugs mailing list