summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0165-36.cs
blob: 594eafc6f6ab22bd263a4bdce8d0fe390bbb3f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0165: Use of unassigned local variable `s'
// Line: 14

using System;

class Program
{
	public static void Main ()
	{
		string s;
		object o = null;
		while (o != null && string.IsNullOrEmpty (s = (string) o.ToString ())) {
		}
		
		Console.WriteLine (s);
	}
}