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

20 lines
314 B
C#

namespace Test {
enum MyEnum {
ZERO,
ONE
}
public class Test {
static int unbox_and_return (object obj) {
return (int)(MyEnum)obj;
}
public static int Main() {
if (unbox_and_return (MyEnum.ZERO) != 0)
return 1;
if (unbox_and_return (MyEnum.ONE) != 1)
return 2;
return 0;
}
}
}