Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0177-4.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c98b3fe7223add380b122247f264de1498ce7cc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// cs0177.cs: The out parameter 'f' must be assigned to before control leaves the current method
// Line: 5

class C {
	public static void test (int a, out float f)
	{
		do {
			// CS0177
			if (a == 8) {
				System.Console.WriteLine ("Hello");
				return;
			}
		} while (false);

		f = 1.3F;
		return;
	}
}