add ISafeSerializationData
[mcs.git] / tests / test-70.cs
blob6fe8da995e89c2f8c3a45588934ca63c31718c2a
1 //
2 // Tests the right settings for overrides
3 //
5 class X {
7 public virtual int A {
8 get {
9 return 1;
13 public virtual int B ()
15 return 1;
19 class Y : X {
20 public override int A {
21 get {
22 return base.A + 2;
26 public override int B ()
28 return base.B () + 1;
32 class Z {
33 static int Main ()
35 Y y = new Y ();
36 X x = new X ();
38 if (y.B () != 2)
39 return 1;
40 if (y.A != 3)
41 return 2;
42 if (x.A != 1)
43 return 3;
44 if (x.B () != 1)
45 return 4;
46 return 0;