2010-05-13 Rodrigo Kumpera <rkumpera@novell.com>
[mono-project.git] / mcs / tests / test-461.cs
blobdde945076fe2a36ef7605b3f23ca448281ab8d53
1 using System;
3 public enum ArrowType {
4 Up,
5 Down,
6 Left,
7 Right,
10 public struct Value {
11 public Value (object obj) {
14 public object Val {
15 get {
16 return ArrowType.Left;
20 public Enum Val2 {
21 get {
22 return ArrowType.Down;
27 public class Valtest {
28 public static int Main () {
29 Value val;
30 ArrowType i = (ArrowType)val.Val2;
32 if ((ArrowType)(Enum)val.Val != ArrowType.Left)
33 return 1;
35 Console.WriteLine ("OK");
36 return 0;