summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0165-45.cs
blob: 7da1251664947a35665180783d90ef1fc59c909c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// CS0165: Use of unassigned local variable `v'
// Line: 19

using System;

class X
{
	void Foo (out int value)
	{
		value = 1;
	}

	public static void Main ()
	{
		int v;
		X x = null;

		x?.Foo (out v);
		Console.WriteLine (v);
	}
}