Merge pull request #2646 from ludovic-henry/fix-processwatch-dispose
[mono.git] / mcs / errors / cs1501-6.cs
index 846bda88f3f5290dfb7659d9a93db68661982e9c..6f67362e6cdf719c31f93e0403966cbe23f5e36e 100644 (file)
@@ -1,13 +1,19 @@
-// cs1501-6.cs: No overload for method `System.Runtime.CompilerServices.IndexerNameAttribute' takes `4' arguments
-// Line: 5
+// CS1501: No overload for method `Foo' takes `2' arguments
+// Line: 17
 
-class MainClass {
-        [System.Runtime.CompilerServices.IndexerName("A", "", "", "")]
-        int this [int index] {
-                get {
-                        return 0;
-                }
-        }
-    
+
+static class Extensions
+{
+       public static string Foo (this string s)
+       {
+               return s;
+       }
 }
 
+public class M
+{
+       public static void Main ()
+       {
+               1.Foo ("foo");
+       }
+}