April 28, 2020 [Issue 20782] New: std.conv.to can't convert string to const enum | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20782 Issue ID: 20782 Summary: std.conv.to can't convert string to const enum Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody@puremagic.com Reporter: atila.neves@gmail.com ------------------------- import std.conv: to; enum Enum { oops } "foo".to!(const Enum); // doesn't compile ------------------------- -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply