aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/try_catch.yue
diff options
context:
space:
mode:
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