repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
errors
/
cs0176-6.cs
blob
6a79e6c162c4abc30f520fe6dde1dd5b6280e823
1
// CS0176: Static member `A.X' cannot be accessed with an instance reference, qualify it with a type name instead
2
// Line: 12
3
using
System
;
4
5
class
A
6
{
7
public static int
X { get { return 2; }
}
8
}
9
10
class
T
11
{
12
static void
Main
()
13
{
14
A T
=
new
A
();
15
System
.
Console
.
WriteLine
(
T
.
X
);
16
}
17
}