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
Make StringComparer.Create throw ArgumentNullException (#26570)
[mono-project.git]
/
mcs
/
errors
/
cs0165-48.cs
blob
166fb5474331091971bfe4f52a19d3a263f18b28
1
// CS0165: Use of unassigned local variable `v'
2
// Line: 19
3
4
using
System
;
5
6
class
X
7
{
8
int this
[
int
v
] {
9
get
{
10
return
1
;
11
}
12
set
{
13
}
14
}
15
16
public static void
Main
()
17
{
18
int
v
;
19
X x
=
null
;
20
21
var
r
=
x
?[
v
=
2
];
22
Console
.
WriteLine
(
v
);
23
}
24
}