repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git]
/
mcs
/
errors
/
cs0176-7.cs
blob
6d78ac4ec78d96eda4b530f50c3ecb7e4fcdee3a
1
// CS0176: Static member `A.Foo()' cannot be accessed with an instance reference, qualify it with a type name instead
2
// Line: 21
3
4
public class
A
5
{
6
public static void
Foo
()
7
{
8
}
9
}
10
11
public class
Test
12
{
13
static
A Prop
14
{
15
get
{
16
return null
;
17
}
18
}
19
20
public static void
Main
()
21
{
22
Test
.
Prop
.
Foo
();
23
}
24
}