Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

29 lines
334 B
C#

using System;
class X
{
enum Foo {
A, B
}
enum Bar {
C, D
}
public static void Main ()
{
Foo foo = Foo.A;
Enum se = (Enum) foo;
Enum sc = (Enum) Foo.A;
object obj1 = (object) foo;
object obj2 = (object) Foo.A;
Bar bar = (Bar) se;
Foo blah = (Foo) obj1;
Enum Ea = Foo.A;
IConvertible iconv = Ea;
}
}