Merge pull request #3591 from directhex/mono_libdir_fallback
[mono.git] / mcs / errors / cs0110.cs
1 // CS0110: The evaluation of the constant value for `A.B.C.X' involves a circular definition
2 // Line: 9
3
4 class A {
5         int a;
6         
7         class B {
8                 int b;
9
10                 class C {
11                         int c;
12
13                         void m ()
14                         {
15                                 c = 1;
16                         }
17
18                         enum F {
19                             A, 
20                             B,
21                             C,
22                             D = X,
23                             E
24                         }
25
26                         const int X = Y + 1;
27                         const int Y = 1 + (int) F.E;
28                 }
29         }
30
31         static int Main (string [] args)
32         {
33                 return 0;
34         }
35
36 }