digitalmars.D.bugs - [Issue 22786] New: maxElement et al does not support range over
- d-bugmail puremagic.com (19/19) Feb 17 2022 https://issues.dlang.org/show_bug.cgi?id=22786
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: nobody puremagic.com Reporter: default_357-line yahoo.de import std; void main() { struct S { immutable int value; } assert([S(5), S(6)].maxElement!"a.value" == S(6)); } --
Feb 17 2022