[corlib] Fix a few NSLogWriter issues. (#13799)
[mono-project.git] / mcs / tests / test-310.cs
blob95c49e74d178d26cfa04a0c1df6844febc475cb9
1 namespace test
4 interface IIntf1
6 string GetType(int index);
9 interface IIntf2: IIntf1
11 bool IsDone();
14 class Impl: IIntf2
16 public string GetType(int index)
18 return "none";
21 public bool IsDone()
23 return true;
27 class myclass
30 public static void Main(string[] args)
32 IIntf1 intf = new Impl();
33 IIntf2 intf2 = intf as IIntf2;
34 if (intf2 != null) {
35 string str = intf2.GetType(0);