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

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


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

User msafar at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=550964#c1





--- Comment #1 from Marek Safar <msafar at novell.com>  2009-10-29 05:29:53 MDT ---
simplest repro from jb

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;

        Pan (a, b);

        return 0;
    }

    static void Pan<T> (T a, T b)
    {
        Console.WriteLine (a.Equals (b));
    }
}

-- 
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