diff options
author | Li Jin <dragon-fly@qq.com> | 2023-12-07 23:49:48 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-12-07 23:55:16 +0800 |
commit | 514b9f97febe8920a78d6078b092fe84b859a963 (patch) | |
tree | 8c76ba7579f69db7e2c899e4713009b910e0fa89 /spec/inputs/unicode/existential.yue | |
parent | a1d719e3bbfe8cd39c05d2a8f49143b9e814f876 (diff) | |
download | yuescript-0.21.0.tar.gz yuescript-0.21.0.tar.bz2 yuescript-0.21.0.zip |
changed the if-assignment syntax to prevent some errors.v0.21.0
Diffstat (limited to 'spec/inputs/unicode/existential.yue')
-rw-r--r-- | spec/inputs/unicode/existential.yue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/inputs/unicode/existential.yue b/spec/inputs/unicode/existential.yue index 0e35a39..de65027 100644 --- a/spec/inputs/unicode/existential.yue +++ b/spec/inputs/unicode/existential.yue | |||
@@ -16,7 +16,7 @@ with 对象abc?!\函数?! | |||
16 | if \函数p? "abc" | 16 | if \函数p? "abc" |
17 | return 123 | 17 | return 123 |
18 | 18 | ||
19 | if {:x字段} = 对象a?.如果?\然后?(123)? @?\方法 998 | 19 | if {:x字段} := 对象a?.如果?\然后?(123)? @?\方法 998 |
20 | 打印 x字段 | 20 | 打印 x字段 |
21 | 21 | ||
22 | 结果 = 对象b.方法\执行!\当?("没问题")\如果("默认",998)\函数? | 22 | 结果 = 对象b.方法\执行!\当?("没问题")\如果("默认",998)\函数? |