Merge pull request #5444 from hifi/fix-tds-inputoutput
[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 }