Author: marek
Date: 2007-04-01 09:32:57 -0400 (Sun, 01 Apr 2007)
New Revision: 75259
Added:
trunk/mcs/tests/gtest-exmethod-07.cs
Log:
New test.
Added: trunk/mcs/tests/gtest-exmethod-07.cs
===================================================================
--- trunk/mcs/tests/gtest-exmethod-07.cs 2007-04-01 13:32:06 UTC (rev
75258)
+++ trunk/mcs/tests/gtest-exmethod-07.cs 2007-04-01 13:32:57 UTC (rev
75259)
@@ -0,0 +1,37 @@
+// Compiler options: -langversion:linq
+
+using System.Collections.Generic;
+
+interface IA
+{
+}
+
+interface IB : IA
+{
+}
+
+static class E
+{
+ internal static void ToReadOnly<T>(this IEnumerable<T> source)
+ {
+ }
+
+ internal static void To (this IA i)
+ {
+ }
+}
+
+class C
+{
+ public static void Main ()
+ {
+ }
+
+ public static void Test (IEnumerable<bool> bindings)
+ {
+ bindings.ToReadOnly();
+
+ IB ib = null;
+ ib.To ();
+ }
+}
\ No newline at end of file
Property changes on: trunk/mcs/tests/gtest-exmethod-07.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches