summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0054.cs
blob: 3e2fcded45739a123cbdf95d733086e14e532817 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// CS0054: Inconsistent accessibility: indexer return type `ErrorCS0054' is less accessible than indexer `Foo.this[int]'
// Line: 13

using System;

class ErrorCS0054 {
	public ErrorCS0054 () {}
}

public class Foo {
	ErrorCS0054[] errors;

	public ErrorCS0054 this[int i] {
		get { return new ErrorCS0054 (); }
	}

	public static void Main () {
	}
}