summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0165-8.cs
blob: ea6411b797813a385df0ecd3f13d0b1476c4d5d8 (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 ()
	{
		int service;

		foreach (char b in "hola") {
			Console.WriteLine (b);
			service = 1;
			break;
		}

		Console.WriteLine (service);
	}
}