* corlib.build: remove AppDomain.cs from the corlib_res.dll.
[mono.git] / mcs / tests / test-28.cs
1 class X {
2         int v1, v2;
3         
4         int this [int a] {
5                 get {
6                         if (a == 0)
7                                 return v1;
8                         else
9                                 return v2;
10                 }
11
12                 set {
13                         if (a == 0)
14                                 v1 = value;
15                         else
16                                 v2 = value;
17                 }
18         }
19
20         static int Main ()
21         {
22                 X x = new X ();
23
24                 x [0] = 1;
25                 if (x.v1 != 1)
26                         return 1;
27
28                 if (x [0] != 1)
29                         return 2;
30
31                 return 0;
32                 
33         }
34 }