2010-07-09 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / errors / cs1501.cs
index 10342181e2885a9bb96e02c839a44338dfddf102..54c315095b904c929e6c90ffff46ee258ec9108e 100644 (file)
@@ -1,15 +1,12 @@
-// cs1501.cs: No overload for method `Base' takes `0' arguments
-// Line: 12
-class Base {
-       Base (string x)
-       {
-       }
-}
-
-// Notice how there is no invocation to "base (something)"
+// CS1501: No overload for method `this' takes `2' arguments
+// Line : 10
 
-class Derived : Base {
-       Derived ()
-       {
+class C
+{
+       public bool this [int i] { get { return false; } set {} }
+       
+       void Foo ()
+       {       C c = new C ();
+               c [0, 0] = null;
        }
 }