www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22785] New: joiner does not support range over immutable

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

          Issue ID: 22785
           Summary: joiner 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(chain([S(5)], [S(6)]).joiner.same([S(5), S(6)]));
}

--
Feb 17 2022