Bug 13141 – array cast from string[] to immutable(char[][]) is not supported at compile time
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-16T22:46:00Z
Last change time
2014-08-22T08:04:34Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
dlang-bugzilla
Comments
Comment #0 by dlang-bugzilla — 2014-07-16T22:46:33Z
Program:
import std.algorithm;
import std.array;
import std.conv;
immutable string[] splitterNames = [4].map!(e => e.text()).array();
Compiler output:
test.d(5): Error: array cast from string[] to immutable(char[][]) is not supported at compile time
Worked in v2.065.0.
Introduced in https://github.com/D-Programming-Language/dmd/pull/3602.