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:
authorMartin Baulig <martin@novell.com>2006-01-10 21:09:27 +0300
committerMartin Baulig <martin@novell.com>2006-01-10 21:09:27 +0300
commit29c2278ee3987e4a79005f018d014077b72847f6 (patch)
tree9ab8f5a9bab79a5a024def7e56ffaff6a0feae63 /mcs/tests/gtest-232.cs
parent9c830ae69efff25e5fbfb3df6d29d3418f58ddba (diff)
2006-01-10 Martin Baulig <martin@ximian.com>
* generic.cs (TypeParameter.InflateConstraints): New public method. * iterators.cs (Iterator.DefineNestedTypes): Also inflate the constraints; fixes #77042. svn path=/trunk/mcs/; revision=55312
Diffstat (limited to 'mcs/tests/gtest-232.cs')
-rwxr-xr-xmcs/tests/gtest-232.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/tests/gtest-232.cs b/mcs/tests/gtest-232.cs
new file mode 100755
index 00000000000..8b01949507d
--- /dev/null
+++ b/mcs/tests/gtest-232.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+
+public class H
+{
+ public static void Main(String[] args) { }
+
+ public static IEnumerable<T> Merge<T> (IEnumerator<T> xEtor)
+ where T : IComparable<T>
+ {
+ int order = xEtor.Current.CompareTo (xEtor.Current);
+ yield return xEtor.Current;
+ }
+}