Regression: cannot cast IntPtr to enum.

using System;

namespace Test
{
    enum Key { A }

    class Regression
    {
        public static void Main()
        {
            IntPtr a = new IntPtr(1);
            Key k = (Key)a;
        }
    }
}

Works on 1.2.4 and 1.2.5, as well csc.exe (2.0). Fails on 1.2.6 Preview 2 
(both mcs and gmcs).

Confirmation?


----- Original Message ----- 
From: "Rusty Howell" <[EMAIL PROTECTED]>
To: "mono-devel" <mono-devel-list@lists.ximian.com>
Sent: Saturday, November 17, 2007 5:14 AM
Subject: [Mono-dev] Announcing Mono 1.2.6 Preview 2 !!


> Hey everyone,
>
> We've release our second preview of Mono 1.2.6 today! Please help us out 
> by giving it a try on your applications.
> Don't forget to log any bugs that you find!
>
> You can get the preview releases here:
> http://mono.ximian.com/monobuild/preview/download-preview/
>
> Please report any bugs that you may find using our Bugs page.
> http://www.mono-project.com/Bugs
>
> Please help the Mono team to make 1.2.6 the best release of Mono ever.
> Thanks!
>
> Mono QA
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to