File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1169,6 +1169,26 @@ def Test_try_catch_nested()
11691169 assert_equal (' finally' , g: in_finally )
11701170enddef
11711171
1172+ def TryOne (): number
1173+ try
1174+ return 0
1175+ catch
1176+ endtry
1177+ return 0
1178+ enddef
1179+
1180+ def TryTwo (n : number ): string
1181+ try
1182+ let x = {}
1183+ catch
1184+ endtry
1185+ return ' text'
1186+ enddef
1187+
1188+ def Test_try_catch_twice ()
1189+ assert_equal (' text' , TryOne ()- >TryTwo ())
1190+ enddef
1191+
11721192def Test_try_catch_match ()
11731193 let seq = ' a'
11741194 try
Original file line number Diff line number Diff line change @@ -750,6 +750,8 @@ static char *(features[]) =
750750
751751static int included_patches [] =
752752{ /* Add new patch number below this line */
753+ /**/
754+ 1700 ,
753755/**/
754756 1699 ,
755757/**/
Original file line number Diff line number Diff line change @@ -1922,6 +1922,7 @@ call_def_function(
19221922 trycmd -> tcd_catch_idx = iptr -> isn_arg .try .try_catch ;
19231923 trycmd -> tcd_finally_idx = iptr -> isn_arg .try .try_finally ;
19241924 trycmd -> tcd_caught = FALSE;
1925+ trycmd -> tcd_return = FALSE;
19251926 }
19261927 break ;
19271928
You can’t perform that action at this time.
0 commit comments