Author: marek
Date: 2007-09-13 05:44:41 -0400 (Thu, 13 Sep 2007)
New Revision: 85733

Added:
   trunk/mcs/tests/gtest-exmethod-10.cs
Log:
New test.



Added: trunk/mcs/tests/gtest-exmethod-10.cs
===================================================================
--- trunk/mcs/tests/gtest-exmethod-10.cs        2007-09-13 09:44:21 UTC (rev 
85732)
+++ trunk/mcs/tests/gtest-exmethod-10.cs        2007-09-13 09:44:41 UTC (rev 
85733)
@@ -0,0 +1,26 @@
+// Compiler options: -langversion:linq
+
+using System;
+
+static class AExtensions
+{
+       public static int Round (this double d)
+       {
+               return (int) Math.Round (d);
+       }
+}
+
+static class BExtensions
+{
+       public static T GetBy<T> (this T [] a, double p)
+       {
+               return a [p.Round ()];
+       }
+}
+
+public class C
+{
+       public static void Main ()
+       {
+       }
+}


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

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

Reply via email to