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
Make StringComparer.Create throw ArgumentNullException (#26570)
[mono-project.git]
/
mcs
/
errors
/
cs0236.cs
blob
297a7a73aba42433a32be682b4cc60f4ebdc36de
1
// CS0236: A field initializer cannot reference the nonstatic field, method, or property `X.Foo'
2
// Line: 12
3
4
class
X
5
{
6
int
Foo
{
7
get
{
8
return
9
;
9
}
10
}
11
12
long
Bar
=
Foo
;
13
14
static void
Main
() {
15
}
16
}
17