https://issues.dlang.org/show_bug.cgi?id=16302
Danila Letunovskiy <kap...@mail.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kap...@mail.ru --- Comment #2 from Danila Letunovskiy <kap...@mail.ru> --- Yeah and opStaticBinary and opStaticAssign and opStaticEquals ;D struct Enum(T) { T n; opStaticAssign(string s)(){ return n = s.to!T; } opStaticEqual(string s)(){ return n == s.to!T; } } enum Color { red, green, blue } Enum!Color c = "red"; if(c == "red"){ } --