Author: marek
Date: 2007-11-09 11:09:06 -0500 (Fri, 09 Nov 2007)
New Revision: 89325

Added:
   trunk/mcs/errors/gcs0837.cs
Log:
New test.



Added: trunk/mcs/errors/gcs0837.cs
===================================================================
--- trunk/mcs/errors/gcs0837.cs 2007-11-09 15:53:01 UTC (rev 89324)
+++ trunk/mcs/errors/gcs0837.cs 2007-11-09 16:09:06 UTC (rev 89325)
@@ -0,0 +1,17 @@
+// CS0837: The `as' operator cannot be applied to a lambda expression or 
anonymous method
+// Line: 15
+// Compiler options: -langversion:linq
+
+class X
+{
+       delegate void D ();
+       
+       static void Test (D d)
+       {
+       }
+       
+       static void Main ()
+       {
+               Test ((() => { }) as D);
+       }
+}


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

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

Reply via email to