[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / gtest-554.cs
blob6de449eb1e798ef14ba4896f613f2c456f73ef73
1 using System;
2 using System.Reflection;
4 namespace Mono.Test
6 class Program
8 public static int Main ()
10 Type t = typeof (B);
11 InterfaceMapping map = t.GetInterfaceMap (typeof (ITest));
13 foreach (MethodInfo m in map.TargetMethods) {
14 if (m.Name.Contains ("."))
15 return 3;
18 if (map.TargetMethods.Length != 3)
19 return 1;
21 MethodInfo[] methods = t.GetMethods (BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly);
22 if (methods.Length != 0)
23 return 2;
25 return 0;
29 public interface ITest
31 bool Success
33 get;
36 void Run ();
37 void Gen<T> ();
40 public class A
42 public bool Success
44 get { return true; }
47 public void Run ()
51 public void Gen<U> ()
56 public class B : A, ITest