[Issue 18835] New: [REG 2.064] to!string doesnt work on enum member starting with two underscores
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 6 18:18:26 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18835
Issue ID: 18835
Summary: [REG 2.064] to!string doesnt work on enum member
starting with two underscores
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: b2.temp at gmx.com
test case:
void main()
{
import std.conv : to;
enum A{_a, __a}
assert(to!string(cast(A) 0) == "_a"); // OK
assert(to!string(cast(A) 1) == "__a"); // fails
}
--
More information about the Digitalmars-d-bugs
mailing list