Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / gtest-110.cs
1 using System;
2
3 public interface IList<R>
4 {
5         int Map<S> (S item);
6 }
7
8 public class List<T> : IList<T>
9 {
10         public int Map<U> (U item)
11         {
12                 return 1;
13         }
14 }
15
16 public class SpecialList<V> : IList<V>
17 {
18         public int Map<W> (W item)
19         {
20                 return 2;
21         }
22 }
23
24 class X
25 {
26         public static int Main ()
27         {
28                 IList<int> list = new List<int> ();
29                 int result = list.Map ("Hello");
30                 if (result != 1)
31                         return 1;
32
33                 IList<int> list2 = new SpecialList<int> ();
34                 int result2 = list2.Map ("World");
35                 if (result2 != 2)
36                         return 2;
37
38                 return 0;
39         }
40 }