Author: marek
Date: 2007-03-31 13:05:35 -0500 (Sat, 31 Mar 2007)
New Revision: 75246

Added:
   trunk/mcs/tests/gtest-anon-18.cs
Log:
New test.

Added: trunk/mcs/tests/gtest-anon-18.cs
===================================================================
--- trunk/mcs/tests/gtest-anon-18.cs    2007-03-31 18:05:04 UTC (rev 75245)
+++ trunk/mcs/tests/gtest-anon-18.cs    2007-03-31 18:05:35 UTC (rev 75246)
@@ -0,0 +1,23 @@
+// Compiler options: -langversion:linq
+// Supported by C# 3.0
+
+public class C
+{
+       public delegate TR Func<TR, TA> (TA t);
+       
+       public static TR Test<TR, TA> (Func<TR, TA> f)
+       {
+               return default (TR);
+       }
+       
+       public static void Test2<T> ()
+       {
+               // FIXME:
+               //T r = Test (delegate (T i) { return i; });
+       }
+       
+       public static void Main()
+       {
+               int r = Test (delegate (int i) { return i < 1 ? 'a' : i; });
+       }
+}
\ No newline at end of file


Property changes on: trunk/mcs/tests/gtest-anon-18.cs
___________________________________________________________________
Name: svn:eol-style
   + native

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

Reply via email to