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

cs1058-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f67ffb84a214cf83d879320ea8069cb3d356ff03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS1058: A previous catch clause already catches all exceptions. All non-exceptions thrown will be wrapped in a `System.Runtime.CompilerServices.RuntimeWrappedException'
// Line: 15
// Compiler options: -warnaserror -warn:4

using System.Runtime.CompilerServices;

[assembly: RuntimeCompatibility (WrapNonExceptionThrows=true)]

class C
{
   static void Main() 
   {
      try {}
      catch (System.Exception) { }
      catch {}
   }
}