18 lines
234 B
C#
18 lines
234 B
C#
|
// 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 {
|
||
|
}
|
||
|
}
|
||
|
}
|