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:
authorBen Maurer <benm@mono-cvs.ximian.com>2004-05-31 00:33:08 +0400
committerBen Maurer <benm@mono-cvs.ximian.com>2004-05-31 00:33:08 +0400
commit9027e9d1b2cce7557862e0a667444574920e65d4 (patch)
tree8f599e0625de9eb1c46820facb40571c5a042ad3 /mcs/errors/cs0176-3.cs
parente21ad29117c8cd1b215884f53592a34e85101adb (diff)
add this
svn path=/trunk/mcs/; revision=28504
Diffstat (limited to 'mcs/errors/cs0176-3.cs')
-rw-r--r--mcs/errors/cs0176-3.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/errors/cs0176-3.cs b/mcs/errors/cs0176-3.cs
new file mode 100644
index 00000000000..964d41f8f73
--- /dev/null
+++ b/mcs/errors/cs0176-3.cs
@@ -0,0 +1,14 @@
+// CS0176: cant access static field via instance reference. qualify w/ type name -- #59324
+// Line: 12
+using System;
+
+class A {
+ public static int X;
+}
+
+class T {
+ static void Main () {
+ A T = new A ();
+ System.Console.WriteLine (T.X);
+ }
+} \ No newline at end of file