Author: marek
Date: 2007-07-04 06:30:47 -0400 (Wed, 04 Jul 2007)
New Revision: 81326

Added:
   trunk/mcs/errors/gcs0815-3.cs
   trunk/mcs/errors/gcs0815-4.cs
Log:
New tests.



Added: trunk/mcs/errors/gcs0815-3.cs
===================================================================
--- trunk/mcs/errors/gcs0815-3.cs       2007-07-04 10:30:26 UTC (rev 81325)
+++ trunk/mcs/errors/gcs0815-3.cs       2007-07-04 10:30:47 UTC (rev 81326)
@@ -0,0 +1,12 @@
+// CS0815: An implicitly typed local variable declaration cannot be 
initialized with `lambda expression'
+// Line: 9
+// Compiler options: -langversion:linq
+
+public class Test
+{
+       static void Main ()
+       {
+               var l = x => x + 1;
+       }
+}
+


Property changes on: trunk/mcs/errors/gcs0815-3.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/mcs/errors/gcs0815-4.cs
===================================================================
--- trunk/mcs/errors/gcs0815-4.cs       2007-07-04 10:30:26 UTC (rev 81325)
+++ trunk/mcs/errors/gcs0815-4.cs       2007-07-04 10:30:47 UTC (rev 81326)
@@ -0,0 +1,12 @@
+// CS0815: An implicitly typed local variable declaration cannot be 
initialized with `anonymous method'
+// Line: 9
+// Compiler options: -langversion:linq
+
+public class Test
+{
+       static void Main ()
+       {
+               var d = delegate {};
+       }
+}
+


Property changes on: trunk/mcs/errors/gcs0815-4.cs
___________________________________________________________________
Name: svn:eol-style
   + native

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to