https://bugzilla.novell.com/show_bug.cgi?id=320236#c3
--- Comment #3 from Marek Safar <[EMAIL PROTECTED]> 2007-11-05 09:52:15 MST ---
Here is the test case.
enum E
{
V
}
struct S
{
public static explicit operator int (S val)
{
return 1;
}
}
class C
{
E Foo ()
{
S s = new S ();
return (E)s;
}
public static void Main ()
{
}
}
Expected: error CS0030: Cannot convert type `S' to `E'
--
Configure bugmail: https://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