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
TaskAwaiter from CoreFX
[mono-project.git]
/
mcs
/
errors
/
cs0165-25.cs
blob
8ffe58681bea2aa0a8bfea7d2a1ca475ce8a9a0f
1
// CS0165: Use of unassigned local variable `trial'
2
// Line: 18
3
4
using
System
;
5
6
class
Test
7
{
8
public static void
Main
(
string
[]
args
)
9
{
10
bool
trial
;
11
string
action
=
"add_trial"
;
12
13
switch
(
action
) {
14
case
"add_trial"
:
15
trial
=
true
;
16
goto case
"add_to_project"
;
17
case
"add_to_project"
:
18
Console
.
WriteLine
(
trial
);
19
break
;
20
case
"test"
:
21
break
;
22
}
23
}
24
}