diff options
author | Li Jin <dragon-fly@qq.com> | 2023-07-28 15:54:12 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-07-28 15:54:12 +0800 |
commit | a89680fe48dd1520843d7629e2006f732e313200 (patch) | |
tree | 8be73ac13bf9389e11d0835ed9bff90cc0be4b74 /spec/inputs | |
parent | 11e855b8124e21beb737ecb4b4e6228e610f572d (diff) | |
download | yuescript-a89680fe48dd1520843d7629e2006f732e313200.tar.gz yuescript-a89680fe48dd1520843d7629e2006f732e313200.tar.bz2 yuescript-a89680fe48dd1520843d7629e2006f732e313200.zip |
made a little optimization for try-catch syntax.
Diffstat (limited to 'spec/inputs')
-rw-r--r-- | spec/inputs/try_catch.yue | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/inputs/try_catch.yue b/spec/inputs/try_catch.yue index e38cbef..96a87fc 100644 --- a/spec/inputs/try_catch.yue +++ b/spec/inputs/try_catch.yue | |||
@@ -50,5 +50,11 @@ do | |||
50 | catch err | 50 | catch err |
51 | print err | 51 | print err |
52 | 52 | ||
53 | do | ||
54 | try | ||
55 | func 1, 2, 3 | ||
56 | |||
57 | try func 1, 2, 3 | ||
58 | |||
53 | nil | 59 | nil |
54 | 60 | ||