projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #3769 from evincarofautumn/fix-verify-before-allocs
[mono.git]
/
mcs
/
errors
/
cs0165-48.cs
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
}