Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2005-10-11 11:20:21 +0400
committerMarek Safar <marek.safar@gmail.com>2005-10-11 11:20:21 +0400
commitb3ed9cadb78e15bb26604eccc4af7f37f0419652 (patch)
treebd0d853eec1ff36c2f811e7c5153978e4da5a19b /mcs/tests/test-461.cs
parent55d67a898648dd19d18dc7bccd9f4048388fa606 (diff)
2005-10-11 Marek Safar <marek.safar@seznam.cz>
* test-461.cs: New test for #76370. svn path=/trunk/mcs/; revision=51550
Diffstat (limited to 'mcs/tests/test-461.cs')
-rw-r--r--mcs/tests/test-461.cs39
1 files changed, 39 insertions, 0 deletions
diff --git a/mcs/tests/test-461.cs b/mcs/tests/test-461.cs
new file mode 100644
index 00000000000..dde945076fe
--- /dev/null
+++ b/mcs/tests/test-461.cs
@@ -0,0 +1,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;
+ }
+}
+