[Issue 14682] New: [REG2.037] Incorrect interpretation of ~ []
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jun 10 21:56:40 PDT 2015
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: nobody at puremagic.com
Reporter: thecybershadow at gmail.com
////////// test.d //////////
import std.stdio;
void main()
{
auto foo = ["foo"] ~ [];
assert(foo.length == 1);
}
////////////////////////////
For some reason, DMD interprets `~[]` as `~[""]`.
--
More information about the Digitalmars-d-bugs
mailing list