aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/unicode/try_catch.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-12-07 23:49:48 +0800
committerLi Jin <dragon-fly@qq.com>2023-12-07 23:55:16 +0800
commit514b9f97febe8920a78d6078b092fe84b859a963 (patch)
tree8c76ba7579f69db7e2c899e4713009b910e0fa89 /spec/inputs/unicode/try_catch.yue
parenta1d719e3bbfe8cd39c05d2a8f49143b9e814f876 (diff)
downloadyuescript-514b9f97febe8920a78d6078b092fe84b859a963.tar.gz
yuescript-514b9f97febe8920a78d6078b092fe84b859a963.tar.bz2
yuescript-514b9f97febe8920a78d6078b092fe84b859a963.zip
changed the if-assignment syntax to prevent some errors.v0.21.0
Diffstat (limited to 'spec/inputs/unicode/try_catch.yue')
-rw-r--r--spec/inputs/unicode/try_catch.yue4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/inputs/unicode/try_catch.yue b/spec/inputs/unicode/try_catch.yue
index 71e03ee..1156d8e 100644
--- a/spec/inputs/unicode/try_catch.yue
+++ b/spec/inputs/unicode/try_catch.yue
@@ -39,14 +39,14 @@ catch 错误
39 打印 "好的" 39 打印 "好的"
40 40
41do 41do
42 if 成功, 结果 = try 函数 "abc", 123 42 if 成功, 结果 := try 函数 "abc", 123
43 打印 结果 43 打印 结果
44 44
45 成功, 结果 = try 函数 "abc", 123 45 成功, 结果 = try 函数 "abc", 123
46 catch 错误 46 catch 错误
47 打印 错误 47 打印 错误
48 48
49 打印 结果 if 成功, 结果 = try 函数 "abc", 123 49 打印 结果 if 成功, 结果 := try 函数 "abc", 123
50 catch 错误 50 catch 错误
51 打印 错误 51 打印 错误
52 52