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>2007-04-03 21:27:04 +0400
committerMartin Baulig <martin@novell.com>2007-04-03 21:27:04 +0400
commit2c7bd4f6eef45c9f995973e194faf7c5d2467960 (patch)
treebe9696b3217da905a124adef60079a9484a3502a /mcs/tests/gtest-326-lib.cs
parent78d0b6a92cd735c43972645326d4111d2392ecfe (diff)
2007-04-03 Martin Baulig <martin@ximian.com>
Fix #80632. * statement.cs (Foreach.CollectionForeach.TryType): Use a custom version of TypeManager.IsOverride() which also works with generic types. svn path=/trunk/mcs/; revision=75351
Diffstat (limited to 'mcs/tests/gtest-326-lib.cs')
-rwxr-xr-xmcs/tests/gtest-326-lib.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/mcs/tests/gtest-326-lib.cs b/mcs/tests/gtest-326-lib.cs
new file mode 100755
index 00000000000..ae26be92976
--- /dev/null
+++ b/mcs/tests/gtest-326-lib.cs
@@ -0,0 +1,32 @@
+// Compiler options: /t:library
+using System;
+using SCG = System.Collections.Generic;
+
+namespace C5
+{
+ public abstract class EnumerableBase<T> : SCG.IEnumerable<T>
+ {
+ public abstract SCG.IEnumerator<T> GetEnumerator ();
+
+ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
+ {
+ return GetEnumerator();
+ }
+ }
+
+ public class ArrayBase<T> : EnumerableBase<T>
+ {
+ public override SCG.IEnumerator<T> GetEnumerator ()
+ {
+ yield break;
+ }
+ }
+
+ public class ArrayList<T> : ArrayBase<T>
+ {
+ public override SCG.IEnumerator<T> GetEnumerator ()
+ {
+ return base.GetEnumerator ();
+ }
+ }
+}