[System.Windows.Forms] Disable failing test
[mono-project.git] / mcs / tests / test-ex-filter-06.cs
blob0b53cf387822e3acb5ed9d24d2d5cf5d6e745483
1 using System;
2 using System.IO;
3 using System.Collections.Generic;
5 class C
7 static int Test<T> () where T : Exception
9 try {
10 throw null;
11 } catch (T t) when (t.Message != null) {
12 return 0;
16 static int Main()
18 try {
19 Test<ApplicationException> ();
20 return 1;
21 } catch {
24 if (Test<NullReferenceException> () != 0)
25 return 2;
27 return 0;