summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0156.cs
blob: eae7b834477bef1762065292fb849922b6351d5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0156: A throw statement with no arguments is not allowed outside of a catch clause
// Line: 12

using System;

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