cleol
[mcs.git] / errors / gcs1058-2.cs
blob7ce5ba45de43ecf9ca0c01693faa2cffd458e127
1 // gcs1058.cs: A previous catch clause already catches all exceptions. All non-exceptions thrown will be wrapped in a `System.Runtime.CompilerServices.RuntimeWrappedException'
2 // Line: 15
3 // Compiler options: -warnaserror -warn:4
5 using System.Runtime.CompilerServices;
7 [assembly: RuntimeCompatibility (WrapNonExceptionThrows=true)]
9 class C
11 static void Main()
13 try {}
14 catch (System.Exception) { }
15 catch {}