Merge pull request #4615 from alexanderkyte/string_error_handling
[mono.git] / mcs / errors / cs0055.cs
index 1ba12ae0a8dcf0f3c51d7b4f5755ffed7c6a48b4..913c0df25e44a0a7e1395677106929f71688ebd7 100644 (file)
@@ -1,14 +1,15 @@
-// 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 () {