diff options
author | Martin Baulig <martin@novell.com> | 2007-04-03 21:27:04 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2007-04-03 21:27:04 +0400 |
commit | 2c7bd4f6eef45c9f995973e194faf7c5d2467960 (patch) | |
tree | be9696b3217da905a124adef60079a9484a3502a /mcs/tests/gtest-326.cs | |
parent | 78d0b6a92cd735c43972645326d4111d2392ecfe (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.cs')
-rwxr-xr-x | mcs/tests/gtest-326.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/tests/gtest-326.cs b/mcs/tests/gtest-326.cs new file mode 100755 index 00000000000..2a396995039 --- /dev/null +++ b/mcs/tests/gtest-326.cs @@ -0,0 +1,15 @@ +// Compiler options: /r:gtest-326-lib.dll +using System; + +public class A : C5.ArrayList<int> +{ } + +class X +{ + static void Main () + { + A x = new A (); + foreach (int i in x) { + } + } +} |