-// cs0055.cs: Inconsistent accessibility. Parameter type is less accessible than indexer.
-// Line: 10
+// CS0055: Inconsistent accessibility: parameter type `ErrorCS0055' is less accessible than indexer `Foo.this[ErrorCS0055]'
+// Line: 11
using System;
class ErrorCS0055 {
+ public ErrorCS0055 () {}
}
-class Foo {
- public ErrorCS0055 this[ErrorCS0055 e] {
- get { return new ErrorCS0055 (); }
+public class Foo {
+ public int this[ErrorCS0055 e] {
+ get { return 5; }
}
public static void Main () {