diff options
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r-- | src/vim9compile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c index b894c6f29..03a6e2c27 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -3493,7 +3493,8 @@ compile_def_function( && ea.cmdidx != CMD_endwhile && ea.cmdidx != CMD_catch && ea.cmdidx != CMD_finally - && ea.cmdidx != CMD_endtry) + && ea.cmdidx != CMD_endtry + && !ignore_unreachable_code_for_testing) { emsg(_(e_unreachable_code_after_return)); goto erret; |