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:
authorMiguel de Icaza <miguel@gnome.org>2003-04-18 17:51:39 +0400
committerMiguel de Icaza <miguel@gnome.org>2003-04-18 17:51:39 +0400
commit58cd257abe9c21dd82869b81967e8eadcd9fea12 (patch)
tree15e372f3180ed5fb7ebd8bedaaca1381de153b0b /mcs/errors/cs0568.cs
parentff3b76bd2fd1ec79d7538f0645746a8c3a71f3f8 (diff)
Add two errors
svn path=/trunk/mcs/; revision=13763
Diffstat (limited to 'mcs/errors/cs0568.cs')
-rw-r--r--mcs/errors/cs0568.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/errors/cs0568.cs b/mcs/errors/cs0568.cs
new file mode 100644
index 00000000000..eea98b27e85
--- /dev/null
+++ b/mcs/errors/cs0568.cs
@@ -0,0 +1,14 @@
+// cs0568.cs: struct can not contain an explicit parameterless constructor
+// Line: 5
+struct A {
+ int a;
+ A () { a = 1; }
+}
+
+class D {
+ static void Main ()
+ {
+ A [] a = new A [10];
+
+ }
+}