[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / tests / gtest-autoproperty-11.cs
blobdae2ebecbdee0273080e8ae411dad21a21429b19
1 using System;
2 using System.Reflection;
4 public class Test
6 public string Property1 { get; }
8 public int Property2 { get; }
10 public static int Main ()
12 var t = new Test ();
13 if (t.Property1 != null)
14 return 1;
16 if (t.Property2 != 0)
17 return 2;
19 var fields = typeof (Test).GetFields(BindingFlags.NonPublic | BindingFlags.Instance);
20 if (fields.Length != 2)
21 return 3;
23 foreach (var fi in fields) {
24 if ((fi.Attributes & FieldAttributes.InitOnly) == 0)
25 return 4;
28 return 0;