1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// CS1501: No overload for method `Foo' takes `2' arguments // Line: 17 static class Extensions { public static string Foo (this string s) { return s; } } public class M { public static void Main () { 1.Foo ("foo"); } }