* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / tests / test-135.cs
1 using System;
2 using System.Reflection;
3 // test bug bug#26264
4
5 interface IA {
6         void doh();
7 }
8 interface IB {
9
10         IA Prop {get;}
11 }
12 class A : IA {
13         public void doh() {}
14 }
15 class T : IB {
16         IA IB.Prop {
17                 get { return new A(); }
18         }
19         public A Prop {
20                 get { return new A(); }
21         }
22         static int Main() {
23                 PropertyInfo[] p = typeof (T).GetProperties (BindingFlags.Public| BindingFlags.NonPublic|BindingFlags.Instance);
24                 if (p == null || p.Length != 2)
25                         return 1;
26                 return 0;
27         }
28 }
29