ea5caba957
Former-commit-id: f3008ca867fe7e4b7ae9b9a8844c0ad5798925a9
25 lines
260 B
C#
25 lines
260 B
C#
// CS0165: Use of unassigned local variable `res'
|
|
// Line: 23
|
|
|
|
class A
|
|
{
|
|
public B b;
|
|
}
|
|
|
|
class B
|
|
{
|
|
public void Foo (int arg)
|
|
{
|
|
}
|
|
}
|
|
|
|
class X
|
|
{
|
|
public static void Main ()
|
|
{
|
|
A a = null;
|
|
int res;
|
|
a?.b.Foo(res = 3);
|
|
System.Console.WriteLine (res);
|
|
}
|
|
} |