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

cs0108-11.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 30f4a12c6175035fcd88e52bedc6cca8edfaf4d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// cs0108.cs: The new keyword is required on 'Bar.this[int, int]' because it hides inherited member
// Line: 15
// Compiler options: -warnaserror -warn:2

public class Foo
{
        public long this [int start, int count] {
                set {
                }
        }
}

public class Bar : Foo
{
        public virtual long this [int i, int length] {
                set {
                }
        }
}