Does the C# compiler get the Color Color rule wrong with const type members?
问题 Okay, so the C# Language Specification has a special section (old version linked) on the Color Color rule where a member and its type has the same name. Well-known guru Eric Lippert once blogged about it. The question I am going to ask here is in a sense (not) quite the same that was asked in the thread Circular definition in a constant enum. You can go and upvote that other question if you like. Now for my question. Consider this code: namespace N { public enum Color { Green, Brown, Purple,