https://issues.dlang.org/show_bug.cgi?id=14682
Issue ID: 14682
Summary: [REG2.037] Incorrect interpretation of ~ []
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
////////// test.d //////////
import std.stdio;
void main()
{
auto foo = ["foo"] ~ [];
assert(foo.length == 1);
}
////////////////////////////
For some reason, DMD interprets `~[]` as `~[""]`.
--
