diff options
Diffstat (limited to 'src/vim9cmds.c')
-rw-r--r-- | src/vim9cmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vim9cmds.c b/src/vim9cmds.c index bc01cd83d..c3c900a5b 100644 --- a/src/vim9cmds.c +++ b/src/vim9cmds.c @@ -1578,7 +1578,8 @@ compile_catch(char_u *arg, cctx_T *cctx UNUSED) return NULL; } - if (scope->se_u.se_try.ts_caught_all) + if (scope->se_u.se_try.ts_caught_all + && !ignore_unreachable_code_for_testing) { emsg(_(e_catch_unreachable_after_catch_all)); return NULL; |