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:
authorMarek Safar <marek.safar@gmail.com>2009-06-17 22:15:19 +0400
committerMarek Safar <marek.safar@gmail.com>2009-06-17 22:15:19 +0400
commitd127b293394ad7815b8c7cf9b4d21de8359b2707 (patch)
tree8a9f2a80a83f4294cec2a73ae506743da4965163 /mcs/errors
parente2078b6a8bc9a9350e8d95ca989b10787cb2ab5d (diff)
New tests.
svn path=/trunk/mcs/; revision=136336
Diffstat (limited to 'mcs/errors')
-rw-r--r--mcs/errors/cs0178.cs2
-rw-r--r--mcs/errors/cs0846.cs10
-rw-r--r--mcs/errors/cs0847.cs10
3 files changed, 21 insertions, 1 deletions
diff --git a/mcs/errors/cs0178.cs b/mcs/errors/cs0178.cs
index d2c990e8a0b..31e8f096c0f 100644
--- a/mcs/errors/cs0178.cs
+++ b/mcs/errors/cs0178.cs
@@ -5,6 +5,6 @@ public class Blah {
public static void Main ()
{
- int [,] i = new int [4,2] { 0, 1, 2, 3, 4, 5 };
+ int [,] i = new int [][2];
}
}
diff --git a/mcs/errors/cs0846.cs b/mcs/errors/cs0846.cs
new file mode 100644
index 00000000000..2eb46fcb59a
--- /dev/null
+++ b/mcs/errors/cs0846.cs
@@ -0,0 +1,10 @@
+// CS0846: A nested array initializer was expected
+// Line: 8
+
+class M
+{
+ public static void Main ()
+ {
+ int[,] i = new int[1, 1] { 2 };
+ }
+}
diff --git a/mcs/errors/cs0847.cs b/mcs/errors/cs0847.cs
new file mode 100644
index 00000000000..d3da37983c2
--- /dev/null
+++ b/mcs/errors/cs0847.cs
@@ -0,0 +1,10 @@
+// CS0847: An array initializer of length `1' was expected
+// Line: 8
+
+class M
+{
+ public static void Main ()
+ {
+ int[] i = new int [1] { 2, 3 };
+ }
+}