blob: dde945076fe2a36ef7605b3f23ca448281ab8d53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
using System;
public enum ArrowType {
Up,
Down,
Left,
Right,
}
public struct Value {
public Value (object obj) {
}
public object Val {
get {
return ArrowType.Left;
}
}
public Enum Val2 {
get {
return ArrowType.Down;
}
}
}
public class Valtest {
public static int Main () {
Value val;
ArrowType i = (ArrowType)val.Val2;
if ((ArrowType)(Enum)val.Val != ArrowType.Left)
return 1;
Console.WriteLine ("OK");
return 0;
}
}
|