enum Enum { member } void main() { auto x = Enum.memberx; } Prints: testx.d(9): Error: no property 'memberx' for type 'int' But it would be much nicer to tell you about the nearly-matching member. Fixing this will most likely fix the reported type as well.