Merge pull request #1861 from saper/home-override
[mono-project.git] / mcs / tests / test-135.cs
blob9b3cdf70badb574df64983291720bebd9524ce71
1 using System;
2 using System.Reflection;
3 // test bug bug#26264
5 interface IA {
6 void doh();
8 interface IB {
10 IA Prop {get;}
12 class A : IA {
13 public void doh() {}
15 class T : IB {
16 IA IB.Prop {
17 get { return new A(); }
19 public A Prop {
20 get { return new A(); }
22 public 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;