aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/try_catch.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2024-05-17 16:38:44 +0800
committerLi Jin <dragon-fly@qq.com>2024-05-17 16:38:44 +0800
commit06bf167924d04aaefe80d6e4ead40989a447ea34 (patch)
treeccd2c3b62797d378ee7cc1872440483d328980ca /spec/inputs/try_catch.yue
parentfe317e2bdd9cb60b3c7cd347e21ce65cf90396e7 (diff)
downloadyuescript-0.23.6.tar.gz
yuescript-0.23.6.tar.bz2
yuescript-0.23.6.zip
fix more cases in try-catch syntax.v0.23.6
Diffstat (limited to 'spec/inputs/try_catch.yue')
-rw-r--r--spec/inputs/try_catch.yue7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/inputs/try_catch.yue b/spec/inputs/try_catch.yue
index 419eef4..4e05bc6 100644
--- a/spec/inputs/try_catch.yue
+++ b/spec/inputs/try_catch.yue
@@ -20,6 +20,8 @@ f = ->
20 20
21 success, result = try func 1, 2, 3 21 success, result = try func 1, 2, 3
22 22
23 tb = {}
24
23 try tb.func 25 try tb.func
24 try tb.func! 26 try tb.func!
25 try tb.func() 27 try tb.func()
@@ -57,4 +59,9 @@ f = ->
57 59
58 try func 1, 2, 3 60 try func 1, 2, 3
59 61
62 do
63 <- x
64 local tb, a, b, c
65 f = -> try tb.f a, b, c
66
60 nil 67 nil