projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2353 from ludovic-henry/fix-servicemodel-15153
[mono.git]
/
mcs
/
errors
/
cs0165-54.cs
1
// CS0165: Use of unassigned local variable `res'
2
// Line: 23
3
4
class A
5
{
6
public B b;
7
}
8
9
class B
10
{
11
public void Foo (int arg)
12
{
13
}
14
}
15
16
class X
17
{
18
public static void Main ()
19
{
20
A a = null;
21
int res;
22
a?.b.Foo(res = 3);
23
System.Console.WriteLine (res);
24
}
25
}