Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / test-ex-filter-04.cs
index 122accb2eeec74212e44c51c30a6619959ead4c1..fe5a66b2db79a78b780ec50e3cdcf06cf630d2be 100644 (file)
@@ -51,7 +51,7 @@ class X
                        Console.WriteLine (x);
                        if (e != null)
                                throw e;
-               } catch (Exception) if (x != 15) {
+               } catch (Exception) when (x != 15) {
                        await Task.FromResult (0);
                        throw;
                }
@@ -64,7 +64,7 @@ class X
                try {
                        Console.WriteLine (x);
                        throw ex;
-               } catch if (x != 15) {
+               } catch when (x != 15) {
                        await Task.FromResult (0);
                        throw;
                }