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
/
cs0649-5.cs
blob
20778691b1e98763eeaa3bd6a23615deaa257767
1
// CS0649: Field `TestClass.b' is never assigned to, and will always have its default value
2
// Line: 12
3
// Compiler options: -warnaserror -warn:4
4
5
public struct
Bar
6
{
7
public int
x
;
8
}
9
10
public class
TestClass
11
{
12
Bar b
;
13
14
public bool
Foo
()
15
{
16
if
(
b
.
x
==
0
)
17
return false
;
18
19
return true
;
20
}
21
22
public static void
Main
()
23
{
24
}
25
}