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
Merge pull request #1525 from akoeplinger/fix-dynamicdata-test
[mono-project.git]
/
mcs
/
errors
/
cs0162-3.cs
blob
1df7c189379db7558cc71a2ac62348fa5abf050f
1
// CS0162: 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
((
Flags
.
Removed
&
_enumFlags
) != (
Flags
.
Removed
&
_enumFlags
))
18
Console
.
WriteLine
(
"error"
);
19
}
20
21
static void
Main
() {}
22
}