-// 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");
+ }
+}