[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / test-170.cs
blobe74720723e67067ac753432c1c94cea5591c61fb
1 //
2 // base and properties test
3 //
4 using System;
6 class X {
7 int val;
9 public virtual int prop {
10 get {
11 return val;
14 set {
15 val = value;
19 public int AAA {
20 set { }
24 class Y : X {
25 int val2 = 1;
27 public override int prop {
28 get {
29 return val2;
32 set {
33 val2 = value;
37 int A () {
38 if (base.prop != 0)
39 return 3;
40 base.prop = 10;
42 if (base.prop != 10)
43 return 2;
45 return 0;
49 public static int Main ()
51 Y y = new Y ();
53 return y.A ();