summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0462-2.cs
blob: ac0c5510cae2bc7838dabbac7a03471c43c6ac01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// CS0462: `B.this[int]' cannot override inherited members `A<T>.this[int]' and `A<T>.this[T]' because they have the same signature when used in type `B'
// Line: 12

abstract class A<T>
{
	public abstract int this[T t] { set; }
	public virtual bool this [int a] { set { } }
}

class B : A<int>
{
	public override int this [int a] { set {} }
}