[System] Use GZipStream from corefx
[mono-project.git] / mono / tests / verifier / valid_merge_interface_type_4.cs
blob3faf82ff4dac1bc55074e52bcaf10bb3ec89a725
1 using System;
2 using System.Reflection;
3 using System.Reflection.Emit;
5 public interface Parent {
6 void Test ();
9 public interface ParentB {
10 void TestB ();
13 public class Foo : Parent, ParentB {
14 public void Test () { Console.WriteLine ("Foo::Test"); }
15 public void TestB () { Console.WriteLine ("Foo::TestB"); }
18 public class Bar : Parent, ParentB {
19 public void Test () { Console.WriteLine ("Bar::Test"); }
20 public void TestB () { Console.WriteLine ("Bar::TestB"); }
23 class Driver {
24 public static int Main (string[] args) {
25 ParentB p;
26 Foo f = new Foo();
27 ParentB b = new Bar();
28 p = args == null ? (ParentB) f : (ParentB) b;
29 p.TestB();
31 return 1;