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/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/existential.yue')
-rw-r--r-- | spec/inputs/existential.yue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/inputs/existential.yue b/spec/inputs/existential.yue index 27891dc..ec38897 100644 --- a/spec/inputs/existential.yue +++ b/spec/inputs/existential.yue | |||
@@ -16,7 +16,7 @@ with abc?!\func?! | |||
16 | if \p? "abc" | 16 | if \p? "abc" |
17 | return 123 | 17 | return 123 |
18 | 18 | ||
19 | if {:x} = a?.if?\then?(123)? @?\function 998 | 19 | if {:x} := a?.if?\then?(123)? @?\function 998 |
20 | print x | 20 | print x |
21 | 21 | ||
22 | res = b.function\do!\while?("OK")\if("def",998)\f? | 22 | res = b.function\do!\while?("OK")\if("def",998)\f? |