New test.
authorMarek Safar <marek.safar@gmail.com>
Tue, 13 Nov 2007 14:11:01 +0000 (14:11 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 13 Nov 2007 14:11:01 +0000 (14:11 -0000)
svn path=/trunk/mcs/; revision=89557

mcs/errors/cs0176-6.cs [new file with mode: 0644]

diff --git a/mcs/errors/cs0176-6.cs b/mcs/errors/cs0176-6.cs
new file mode 100644 (file)
index 0000000..6a79e6c
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0176: Static member `A.X' cannot be accessed with an instance reference, qualify it with a type name instead
+// Line: 12
+using System;
+
+class A
+{
+       public static int X { get { return 2; } }
+}
+
+class T
+       {
+       static void Main ()
+       {
+               A T = new A ();
+               System.Console.WriteLine (T.X);
+       }
+}
\ No newline at end of file