a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
14 lines
344 B
C#
14 lines
344 B
C#
// 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 {} }
|
|
}
|