summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0695-6.cs
blob: 26721c16d35920539a29be280c5ece8d858d0606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// CS0695: `Test<T>.TestN' cannot implement both `C<T>.I' and `C<string>.I' because they may unify for some type parameter substitutions
// Line: 17

class C<T>
{
	public interface I
	{
	}
	
	public class N : C<string>
	{
	}
}

class Test<T> : C<T>
{
	class TestN : I, N.I
	{
	}
}