summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-549.cs
blob: d732bc5bd6ef35f29da64c741fd0da61fcf75034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class C<T>
{
	public interface IA
	{
		void MA (T arg);
	}
	
	public interface IB : IA
	{
		void MB (T arg);
	}
}

class D : C<int>
{
	public class Impl : IB
	{
		public void MA (int arg)
		{
		}
		
		public void MB (int arg)
		{
		}
	}
}

class Test
{
	public static void Main ()
	{
		C<int>.IB arg = new D.Impl ();
		arg.MA (1);
		arg.MB (1);	
	}
}