[Issue 22786] New: maxElement et al does not support range over immutable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 17 10:21:08 UTC 2022
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 at puremagic.com
Reporter: default_357-line at yahoo.de
import std;
void main() {
struct S { immutable int value; }
assert([S(5), S(6)].maxElement!"a.value" == S(6));
}
--
More information about the Digitalmars-d-bugs
mailing list