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:
authorRavi Pratap M <ravi@mono-cvs.ximian.com>2001-12-01 20:47:53 +0300
committerRavi Pratap M <ravi@mono-cvs.ximian.com>2001-12-01 20:47:53 +0300
commitb8c04460bc543bacfacc200905ffbad77bb59c0b (patch)
treee07694b5a818c48c40cf86bb8d7b06844dd61361 /mcs/tests/test-40.cs
parentb53421229b95ea09bc8c121bb810c5263d96688c (diff)
Make the recursive definitions more roundabout
svn path=/trunk/mcs/; revision=1501
Diffstat (limited to 'mcs/tests/test-40.cs')
-rw-r--r--mcs/tests/test-40.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/mcs/tests/test-40.cs b/mcs/tests/test-40.cs
index a258d0718a5..f2e1d29e18e 100644
--- a/mcs/tests/test-40.cs
+++ b/mcs/tests/test-40.cs
@@ -4,12 +4,13 @@ public class Blah {
enum Bar {
a = MyEnum.Foo,
- b = A.c
+ b = A.c,
+ c = MyEnum.Bar
}
public enum MyEnum : byte {
Foo = 254,
- Bar
+ Bar = B.y
}
enum A {
@@ -55,6 +56,11 @@ public class Blah {
if (i != 2)
return 1;
+ j = (int) Bar.c;
+
+ if (j != 1)
+ return 1;
+
Console.WriteLine ("Enum emission test okay");
return 0;
}