Add Mono.Runtime::GetNativeStackTrace method to make the new backtracing facility...
[mono-project.git] / mcs / tests / test-170.cs
blob8413f5c97a835ac2bd1c023bfad55513a90b11bc
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 static int Main ()
51 Y y = new Y ();
53 return y.A ();