* TaskLoggingHelper.cs (LogErrorFromException): Add missing overload.
[mcs.git] / tests / test-61.cs
blob9d8c8532b0f4e16c78aceff420e0694010dc2c98
1 //
2 // This tests checks that we allow the `get' and `set' keywords inside
3 // the get and set blocks. It does the same for Events special remove
4 // and add keywords.
5 //
6 class X {
7 int Property {
8 get {
9 int get;
10 get = 1;
11 return get;
13 set {
14 int set;
15 set = value;
19 int P2 {
20 get { return 0; }
23 int P3 {
24 set { }
27 public delegate void MyEvent ();
29 public event MyEvent XX {
30 add { int add = 1; }
31 remove { int remove = 1; }
34 static int Main ()
36 return 0;