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
[metadata] Use MONO_PROFILER_API on MonoClass getters in checked builds (#20440)
[mono-project.git]
/
mcs
/
errors
/
cs0170.cs
blob
366b485d184ec7f3ae944995c8c6ed9aae997398
1
// CS0170: Use of possibly unassigned field `a'
2
// Line: 21
3
4
namespace
CS0170
5
{
6
public struct
Foo
{
7
public int
a
;
8
}
9
10
public class
Bar
11
{
12
public void
Inc
(
int
x
)
13
{
14
++
x
;
15
}
16
17
static void
Main
()
18
{
19
Foo f
;
20
Bar b
=
new
Bar
();
21
b
.
Inc
(
f
.
a
);
22
}
23
}
24
}