[Issue 18135] [REG2.078] can't join RegexMatch anymore

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 29 12:43:52 UTC 2017


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

--- Comment #4 from Martin Nowak <code at dawg.eu> ---
cat > bug.d << CODE
import std.regex : RegexMatch;

struct MapResult(Range)
{
    Range input;
}

void bug()
{
    MapResult!(RegexMatch!string) res;
    res = MapResult!(RegexMatch!string)();
}
CODE
dmd -c bug.d
----
bug.d(11): Error: cannot modify struct res MapResult!(RegexMatch!string) with
immutable members
----

--


More information about the Digitalmars-d-bugs mailing list