https://issues.dlang.org/show_bug.cgi?id=22786

          Issue ID: 22786
           Summary: maxElement et al does not support range over immutable
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

import std;

void main() {
    struct S { immutable int value; }
    assert([S(5), S(6)].maxElement!"a.value" == S(6));
}

--

Reply via email to