[Mono-bugs] [Bug 550964] New: Enum values with ulong base type are never equal

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 29 07:18:03 EDT 2009


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: lupus at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list