Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2008-07-14 19:26:50 +0400
committerMarek Safar <marek.safar@gmail.com>2008-07-14 19:26:50 +0400
commitfeb7eb59a34757a0124fc2ec21c1d58ac233de2c (patch)
tree821a0887f019df43ef2bb10f1dc48f932950c531 /mcs/tests/gtest-iter-05.cs
parentbe35604dd15ce6fc508888d20833123091ab16d1 (diff)
2008-07-14 Marek Safar <marek.safar@gmail.com>
A test for bug #408361 svn path=/trunk/mcs/; revision=107889
Diffstat (limited to 'mcs/tests/gtest-iter-05.cs')
-rwxr-xr-xmcs/tests/gtest-iter-05.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/mcs/tests/gtest-iter-05.cs b/mcs/tests/gtest-iter-05.cs
new file mode 100755
index 00000000000..cd4a15a99e1
--- /dev/null
+++ b/mcs/tests/gtest-iter-05.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+
+public class Test
+{
+ public static void Main ()
+ {
+ Foo<int> nav = new Foo<int> ();
+ IEnumerable<int> t = TestRoutine<int> (new int [] { 1 }, nav);
+ new List<int> (t);
+ }
+
+ public static IEnumerable<T> TestRoutine<T> (IEnumerable<T> a, Foo<T> f)
+ {
+ f.CreateItem<int> ();
+ foreach (T n in a) {
+ yield return n;
+ }
+ }
+
+}
+public class Foo<T>
+{
+ public void CreateItem<G> ()
+ {
+ }
+}