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
/
cs0165-57.cs
blob
61bb2c6b502c09ab1b82616091ccf1f65807a73f
1
// CS0165: Use of unassigned local variable `v'
2
// Line: 52
3
4
struct
Vector3
5
{
6
int
field1
,
field2
,
field3
;
7
}
8
9
public class
C
10
{
11
void
Update
()
12
{
13
int
v1
=
0
;
14
int
v2
=
0
;
15
int
v3
=
0
;
16
int
v4
=
0
;
17
int
v5
=
0
;
18
int
v6
=
0
;
19
int
v7
=
0
;
20
int
v8
=
0
;
21
int
v9
=
0
;
22
int
v10
=
0
;
23
int
v11
=
0
;
24
int
v12
=
0
;
25
int
v13
=
0
;
26
int
v14
=
0
;
27
int
v15
=
0
;
28
int
v16
=
0
;
29
int
v17
=
0
;
30
int
v18
=
0
;
31
int
v19
=
0
;
32
int
v20
=
0
;
33
int
v21
=
0
;
34
int
v22
=
0
;
35
int
v23
=
0
;
36
int
v24
=
0
;
37
int
v25
=
0
;
38
int
v26
=
0
;
39
int
v27
=
0
;
40
int
v29
;
41
42
Vector3 v
;
43
if
(
v1
==
0
)
44
{
45
v
=
new
Vector3
();
46
}
47
else if
(
v2
>=
0.5
)
48
{
49
v
=
new
Vector3
();
50
}
51
52
System
.
GC
.
KeepAlive
(
v
);
53
}
54
}