Bug 10355 – fullyQualifiedName doesn't work with enums
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-14T00:20:00Z
Last change time
2013-06-18T15:11:34Z
Keywords
pull
Assigned to
nobody
Creator
doob
Comments
Comment #0 by doob — 2013-06-14T00:20:12Z
module main;
import std.traits;
enum Foo { a }
static assert(fullyQualifiedName!(Foo) == "main.Foo");
The above assertion passed in DMD 2.061 but fails with 2.062 and later.
Comment #1 by doob — 2013-06-14T00:29:13Z
fullyQualifiedName!(Foo) will be resolved to "Foo", it doesn't include the module name.