Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Test case for bug #325495.

svn path=/trunk/mono/; revision=86919
  • Loading branch information...
commit 5dbd8d9e883e589913ca19b4ddfecdef7612674a 1 parent 59e5fa8
@illupus illupus authored
Showing with 23 additions and 0 deletions.
  1. +1 −0  mono/tests/Makefile.am
  2. +22 −0 mono/tests/anonarray.2.cs
View
1  mono/tests/Makefile.am
@@ -299,6 +299,7 @@ TEST_CS2_SRC = \
bug-80392.2.cs \
dynamic-method-access.2.cs \
bug-82194.2.cs \
+ anonarray.2.cs \
generic_type_definition.2.cs
TEST_IL2_SRC = find-method.2.il \
View
22 mono/tests/anonarray.2.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+
+class Program {
+ public static void Main()
+ {
+ // this form of initialisation causes a crash when I try
+ // to iterate through the items.
+ IEnumerable<IEnumerable<string>> table
+ = new string[][] {
+ new string[] { "1a", "1b" },
+ new string[] { "2a", "2b" }
+ };
+
+ foreach (IEnumerable<string> row in table) {
+ foreach (string cell in row) {
+ Console.Write("{0} ", cell);
+ }
+ Console.WriteLine();
+ }
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.