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

cs0162-4.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 547c22f365ee982c422570d89e7779e4de454851 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0162: Unreachable code detected
// Line: 13
// Compiler options: -warnaserror -warn:2

using System;

class C {
	bool T () { return true; }

	void Close()
	{	
		if (T () && false)
			Console.WriteLine ("error");
	}
}

class XXXX { static void Main () {} }