New test.
authorMarek Safar <marek.safar@gmail.com>
Tue, 13 Nov 2007 14:09:02 +0000 (14:09 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 13 Nov 2007 14:09:02 +0000 (14:09 -0000)
svn path=/trunk/mcs/; revision=89556

mcs/tests/gtest-exmethod-13.cs [new file with mode: 0644]

diff --git a/mcs/tests/gtest-exmethod-13.cs b/mcs/tests/gtest-exmethod-13.cs
new file mode 100644 (file)
index 0000000..ce932d3
--- /dev/null
@@ -0,0 +1,19 @@
+// Compiler options: -langversion:linq
+
+using System;
+using System.Collections.Generic;
+
+public static class Foo
+{
+        public static IEnumerable<T> Reverse<T> (this IEnumerable<T> self)
+        {
+                return self;
+        }
+
+        public static void Main ()
+        {
+                int [] data = {0, 1, 2};
+
+                var rev = data.Reverse ();
+        }
+}