Author: marek
Date: 2007-10-08 12:51:38 -0400 (Mon, 08 Oct 2007)
New Revision: 87108
Added:
trunk/mcs/errors/gcs1061.cs
trunk/mcs/errors/gcs1501.cs
Log:
New tests.
Added: trunk/mcs/errors/gcs1061.cs
===================================================================
--- trunk/mcs/errors/gcs1061.cs 2007-10-08 16:51:23 UTC (rev 87107)
+++ trunk/mcs/errors/gcs1061.cs 2007-10-08 16:51:38 UTC (rev 87108)
@@ -0,0 +1,11 @@
+// CS1061: Type `int' does not contain a definition for `Foo' and no extension
method `Foo' of type `int' could be found (are you missing a using directive or
an assembly reference?)
+// Line: 9
+// Compiler options: -langversion:linq
+
+public class M
+{
+ public static void Main ()
+ {
+ 1.Foo ("foo");
+ }
+}
\ No newline at end of file
Property changes on: trunk/mcs/errors/gcs1061.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/mcs/errors/gcs1501.cs
===================================================================
--- trunk/mcs/errors/gcs1501.cs 2007-10-08 16:51:23 UTC (rev 87107)
+++ trunk/mcs/errors/gcs1501.cs 2007-10-08 16:51:38 UTC (rev 87108)
@@ -0,0 +1,19 @@
+// CS1501: No overload for method `Foo' takes `1' arguments
+// Line: 17
+// Compiler options: -langversion:linq
+
+static class Extensions
+{
+ public static string Foo (this string s)
+ {
+ return s;
+ }
+}
+
+public class M
+{
+ public static void Main ()
+ {
+ 1.Foo ("foo");
+ }
+}
\ No newline at end of file
Property changes on: trunk/mcs/errors/gcs1501.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches