I don't think this should happen: private enum KeywordsToTypes = [ "import"d : TT.KwIMPORT, "public"d : TT.KwPUBLIC, "protected"d : TT.KwPROTECTED, "private"d : TT.KwPRIVATE, "static"d : TT.KwSTATIC, ]; static this() { // writes "0" std.stdio.writeln("import"d in KeywordsToTypes); } Is there a reason why, or is this a bug?