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

cs0156.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 18fc9e36fb4e77976ec64fbfbe3dc5cd015f7651 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0156: A throw statement with no argument is only allowed in a catch clause
// Line: 12

using System;

class Foo
{
	static void Main ()
	{
		try {
			Console.WriteLine ("Test cs0156");
			throw;
		}
		catch {
		}			
	}
}