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

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

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

		Console.WriteLine (service);
	}
}