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-14 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
errors
/
cs0170.cs
blob
9d7f5a67ee770bc5bef9d30201cf639bc5944613
1
// CS0170: Use of possibly unassigned field `a'
2
// Line: 23
3
4
using
System
;
5
6
namespace
cs0170
7
{
8
public struct
Foo
{
9
public int
a
;
10
}
11
12
public class
Bar
13
{
14
public void
Inc
(
int
x
)
15
{
16
++
x
;
17
}
18
19
static void
Main
()
20
{
21
Foo f
;
22
Bar b
=
new
Bar
();
23
b
.
Inc
(
f
.
a
);
24
Console
.
WriteLine
(
f
.
a
);
25
}
26
}
27
}