summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1058-1.cs
blob: e95c83b9b22235d57b788538b893d939bf4bf449 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS1058: A previous catch clause already catches all exceptions. All non-exceptions thrown will be wrapped in a `System.Runtime.CompilerServices.RuntimeWrappedException'
// Line: 11
// Compiler options: -warnaserror -warn:4

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