http://bugzilla.novell.com/show_bug.cgi?id=550964


           Summary: Enum values with ulong base type are never equal
    Classification: Mono
           Product: Mono: Runtime
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: JIT
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


using System;
using System.Collections.Generic;

enum MyEnumUlong : ulong
{
    Value_2 = 2
}

public class Test
{
    public static int Main ()
    {
        MyEnumUlong a = MyEnumUlong.Value_2;
        MyEnumUlong b = MyEnumUlong.Value_2;

        if (!EqualityComparer<MyEnumUlong>.Default.Equals (a, b))
            Console.WriteLine ("FAILED");

        return 0;
    }
}

Compile & Run

FAILED

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to