diff options
author | Ben Maurer <benm@mono-cvs.ximian.com> | 2004-05-31 00:33:08 +0400 |
---|---|---|
committer | Ben Maurer <benm@mono-cvs.ximian.com> | 2004-05-31 00:33:08 +0400 |
commit | 9027e9d1b2cce7557862e0a667444574920e65d4 (patch) | |
tree | 8f599e0625de9eb1c46820facb40571c5a042ad3 /mcs/errors/cs0176-3.cs | |
parent | e21ad29117c8cd1b215884f53592a34e85101adb (diff) |
add this
svn path=/trunk/mcs/; revision=28504
Diffstat (limited to 'mcs/errors/cs0176-3.cs')
-rw-r--r-- | mcs/errors/cs0176-3.cs | 14 |
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 |