Move Enum and CorElementType to shared (dotnet/coreclr#23177)
[mono-project.git] / mcs / tests / test-869.cs
bloba0b22419ddc90c93d199577560ef93431b884ee8
1 using System;
3 public class C
5 public static readonly C Token = new C ();
7 public static C operator & (C set, E value)
9 return Token;
12 public static implicit operator E (C c)
14 throw new ApplicationException ();
18 public enum E
20 Item = 2
23 enum E2
25 A = 0,
30 class FooClass
32 public static int Main ()
34 C m = new C ();
35 var x = E.Item;
36 var res = m & x;
37 if (res != C.Token)
38 return 1;
40 res = m & E.Item;
41 if (res != C.Token)
42 return 2;
44 E2 e2 = E2.C;
46 int day1 = e2 - E2.A;
47 return 0;