diff options
author | Li Jin <dragon-fly@qq.com> | 2022-09-08 09:26:49 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-09-08 09:26:49 +0800 |
commit | d4af1fa275b1d27229fc995f4a45137380040933 (patch) | |
tree | 955c76511d7021e6d1a0f06b46de3852eeac4176 /spec/inputs/assign.yue | |
parent | df85ad2e7f975026ca1e6bd84b26fff81c8d99c8 (diff) | |
download | yuescript-d4af1fa275b1d27229fc995f4a45137380040933.tar.gz yuescript-d4af1fa275b1d27229fc995f4a45137380040933.tar.bz2 yuescript-d4af1fa275b1d27229fc995f4a45137380040933.zip |
redesigned metatable syntax. add support for destructuring a field with string and expression
Diffstat (limited to 'spec/inputs/assign.yue')
-rw-r--r-- | spec/inputs/assign.yue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/inputs/assign.yue b/spec/inputs/assign.yue index d04bcb8..da44dff 100644 --- a/spec/inputs/assign.yue +++ b/spec/inputs/assign.yue | |||
@@ -34,7 +34,7 @@ x = (do | |||
34 | 34 | ||
35 | (using nil) <- _ | 35 | (using nil) <- _ |
36 | 36 | ||
37 | a.# = do | 37 | a.<> = do |
38 | print 123 | 38 | print 123 |
39 | {} | 39 | {} |
40 | 40 | ||
@@ -63,7 +63,7 @@ do | |||
63 | 123, tb | 63 | 123, tb |
64 | 64 | ||
65 | do | 65 | do |
66 | a, b[], c, d.add# = if x | 66 | a, b[], c, d.<add> = if x |
67 | switch y | 67 | switch y |
68 | when 1 | 68 | when 1 |
69 | f! | 69 | f! |