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
2009-11-20 Marek Safar <marek.safar@gmail.com>
[mcs.git]
/
errors
/
cs0162-2.cs
blob
143374e06fbd8923a13005343b617f0b324fc1e2
1
// cs0162.cs: Unreachable code detected
2
// Line: 18
3
// Compiler options: -warnaserror -warn:2
4
5
using
System
;
6
7
class
C
{
8
public enum
Flags
{
9
Removed
=
0
,
10
Public
=
1
11
}
12
13
public
Flags _enumFlags
;
14
15
internal void
Close
()
16
{
17
if
((
_enumFlags
&
Flags
.
Removed
) !=
0
)
18
Console
.
WriteLine
(
"error"
);
19
}
20
}