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

public class Foo
{
	static void Main (string[] args)
	{
		int service;

		int pos = 0;
		while (pos < args.Length) {
			service = 1;
			break;
		}

		Console.WriteLine (service);
	}
}