Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0767.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d6a59c19b8e8ff33bda20009bf422f72ca6f49d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// CS0767: Cannot implement interface `I<T,U>' with the specified type parameters because it causes method `I<int,int>.Foo(ref int)' to differ on parameter modifiers only
// Line: 10

interface I<T, U>
{
    void Foo(ref U t);
    void Foo(out T u);
}

class A : I<int, int>
{
    void I<int, int>.Foo(ref int arg)
	{
	}
	
    public virtual void Foo(out int arg)
	{
		arg = 8;
	}
}