Merge pull request #4403 from BrzVlad/fix-workers-par-context
[mono.git] / mono / tests / verifier / valid_merge_interface_type.cs
1 using System;
2 using System.Reflection;
3 using System.Reflection.Emit;
4
5 public interface Parent {
6         void Test ();
7 }
8
9 public class Foo : Parent {
10         public void Test () {}
11 }
12
13 public class Bar : Parent {
14         public void Test () {}
15
16 }
17
18 class Driver {
19
20
21         public static int Main (string[] args) {
22                 Parent p;
23                 Foo f = new Foo();
24                 Bar b = new Bar();
25                 p = args == null ? (Parent) f : (Parent) b;
26
27                 p.Test();
28
29                 return 1;
30         }
31 }