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
2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
[mcs.git]
/
errors
/
cs0176-4.cs
blob
7f05ccc3a01b84519aaedbe86ee893fbd82b3604
1
// cs0176-4.cs: Static member `X.CONST' cannot be accessed with an instance reference, qualify it with a type name instead
2
// Line: 12
3
4
public class
X
{
5
public const double
CONST
=
1
;
6
}
7
8
public class
Y
:
X
{
9
10
void
D
(
X x
)
11
{
12
double
d
=
x
.
CONST
;
13
}
14
}