[Mono-list] enum broken

Jonathan Stowe gellyfish@gellyfish.com
Sun, 7 Apr 2002 09:52:50 +0100 (BST)


This really doesn't do what it should :

   class Test
   {
     enum Zub
     {
        Foo = 99,
        Bar,
        Baz
      }

      static void Main()
      {
         System.Console.WriteLine("Foo : {0}", Zub.Foo);
         System.Console.WriteLine("Bar : {0}", Zub.Bar);
         System.Console.WriteLine("Baz : {0}", Zub.Baz);

       }
   }

Producing :

Foo : Foo
Bar : Bar
Baz : Baz

Which really isn't right - this for any combination of assignment.


On a side note, is it better than I send these things here or should I be
sending them through bugzilla.ximian.com or indeed both ?

/J\
-- 
Jonathan Stowe                      |
<http://www.gellyfish.com>          |      This space for rent
                                    |