New test.
authorMarek Safar <marek.safar@gmail.com>
Tue, 24 Jun 2008 00:08:25 +0000 (00:08 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 24 Jun 2008 00:08:25 +0000 (00:08 -0000)
svn path=/trunk/mcs/; revision=106478

mcs/tests/gtest-linq-13.cs [new file with mode: 0755]

diff --git a/mcs/tests/gtest-linq-13.cs b/mcs/tests/gtest-linq-13.cs
new file mode 100755 (executable)
index 0000000..c1af927
--- /dev/null
@@ -0,0 +1,42 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+
+class Program {
+
+       static void Main ()
+       {
+       }
+
+       static void Foo (TypeDefinition type)
+       {
+               var res = from MethodDefinition meth in type.Methods
+                                       select meth;
+       }
+}
+
+interface IFoo
+{
+}
+
+static class Extension
+{
+       public static IEnumerable<T> Cast<T> (this IFoo i)
+       {
+               return null;
+       }
+}
+
+public class MethodDefinition
+{
+}
+
+public class TypeDefinition
+{
+       public MethodDefinitionCollection Methods { get { return null; } set {} }
+}
+
+public class MethodDefinitionCollection : CollectionBase 
+{
+}
\ No newline at end of file