← Back to index
|
Original Bugzilla link
Bug 12997 – Variant's coerce function does not go from enums to their underlying types
Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-26T22:51:16Z
Last change time
2024-12-01T16:21:40Z
Assigned to
No Owner
Creator
Mark Isaacson
See also
https://issues.dlang.org/show_bug.cgi?id=18339
Moved to GitHub: phobos#10066 →
Comments
Comment #0
by markisaa — 2014-06-26T22:51:16Z
Comment #1
by markisaa — 2014-06-26T22:53:07Z
enum TestEnum : int { Bob } auto v = Variant(TestEnum.Bob); auto x = v.coerce!int(); //Throws exception
Comment #2
by robert.schadek — 2024-12-01T16:21:40Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/phobos/issues/10066
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB