jskeet / unconstrained-melody

Automatically exported from code.google.com/p/unconstrained-melody
131 stars 17 forks source link

Enum methods may well fail for duplicate values #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Enums are allowed to have duplicate named values, e.g.

    public enum Foo
    {
        Bar = 1,
        Baz = 1
    }

I doubt that we cope with that at the moment in all situations - and at the 
very least we should have tests for it.

Original issue reported on code.google.com by jonathan.skeet on 15 Sep 2009 at 8:05