projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b8d3a9
)
New test.
author
Marek Safar
<marek.safar@gmail.com>
Tue, 13 Nov 2007 14:11:01 +0000
(14:11 -0000)
committer
Marek 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]
patch
|
blob
diff --git a/mcs/errors/cs0176-6.cs
b/mcs/errors/cs0176-6.cs
new file mode 100644
(file)
index 0000000..
6a79e6c
--- /dev/null
+++ b/
mcs/errors/cs0176-6.cs
@@ -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