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

cs0462.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cc366dfb754763b506a2262846c703eac06bf10d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// CS0462: `B.M(int)' cannot override inherited members `A<T>.M(int)' and `A<T>.M(T)' because they have the same signature when used in type `B'
// Line: 12

abstract class A<T>
{
	public abstract void M (T t);
	public virtual void M (int t) { }
}

class B : A<int>
{
	public override void M (int t) { }
}