Merge pull request #3769 from evincarofautumn/fix-verify-before-allocs
[mono.git] / mcs / errors / cs1058-2.cs
1 // CS1058: 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
4
5 using System.Runtime.CompilerServices;
6
7 [assembly: RuntimeCompatibility (WrapNonExceptionThrows=true)]
8
9 class C
10 {
11    static void Main() 
12    {
13       try {}
14       catch (System.Exception) { }
15       catch {}
16    }
17 }