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>2001-10-12 05:24:02 +0400
committerMiguel de Icaza <miguel@gnome.org>2001-10-12 05:24:02 +0400
commiteeffa700cfcda5b8977beb45da24b24b4cabc011 (patch)
tree51365c88ab6320034157b4c2207eb8fe78e85511 /mcs/errors/cs0026-2.cs
parentd6c8f01231476177ae7c63cd16a138c4fc3a62f6 (diff)
Add more tests
svn path=/trunk/mcs/; revision=1153
Diffstat (limited to 'mcs/errors/cs0026-2.cs')
-rwxr-xr-xmcs/errors/cs0026-2.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/mcs/errors/cs0026-2.cs b/mcs/errors/cs0026-2.cs
new file mode 100755
index 00000000000..a4f41cdb51d
--- /dev/null
+++ b/mcs/errors/cs0026-2.cs
@@ -0,0 +1,10 @@
+// cs0026: use of this is not allowed in a static field initializer
+//
+class X {
+ static object o = this;
+
+ static int Main ()
+ {
+ return 1;
+ }
+}