Permalink
Browse files

Test for bug #341112.

svn path=/trunk/mono/; revision=90021
  • Loading branch information...
1 parent 7c1ff55 commit 3e91e029b6edbcc00fccf6b1d69fd6f0086f87c7 @illupus illupus committed Nov 20, 2007
Showing with 24 additions and 0 deletions.
  1. +1 −0 mono/tests/Makefile.am
  2. +23 −0 mono/tests/array-enumerator-ifaces.2.cs
View
1 mono/tests/Makefile.am
@@ -309,6 +309,7 @@ TEST_CS2_SRC = \
bug-82194.2.cs \
anonarray.2.cs \
ienumerator-interfaces.2.cs \
+ array-enumerator-ifaces.2.cs \
generic_type_definition_encoding.2.cs \
generic_type_definition.2.cs \
bug-333798.2.cs \
View
23 mono/tests/array-enumerator-ifaces.2.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+
+class Test
+{
+ static void Main()
+ {
+ List<string> in1 = new List<string>();
+ in1.Add("A");
+ List<string> in2 = new List<string>();
+ in2.Add("B");
+ SetRequiredInputTypes(new List<string>[] { in1, in2 });
+ }
+
+ static public void SetRequiredInputTypes(IEnumerable<IEnumerable<string>> enum_enum_strings)
+ {
+ foreach (IEnumerable<string> enum_strings in enum_enum_strings)
+ {
+ foreach (string s in enum_strings)
+ Console.WriteLine(s);
+ }
+ }
+}

0 comments on commit 3e91e02

Please sign in to comment.