aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/class.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-09-08 09:26:49 +0800
committerLi Jin <dragon-fly@qq.com>2022-09-08 09:26:49 +0800
commitd4af1fa275b1d27229fc995f4a45137380040933 (patch)
tree955c76511d7021e6d1a0f06b46de3852eeac4176 /spec/inputs/class.yue
parentdf85ad2e7f975026ca1e6bd84b26fff81c8d99c8 (diff)
downloadyuescript-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/class.yue')
-rw-r--r--spec/inputs/class.yue6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/inputs/class.yue b/spec/inputs/class.yue
index 9091d23..49537c2 100644
--- a/spec/inputs/class.yue
+++ b/spec/inputs/class.yue
@@ -237,9 +237,9 @@ class Example
237 237
238class Foo 238class Foo
239 new: (x) => @x = x 239 new: (x) => @x = x
240 mul#: (y) => @x * y 240 <mul>: (y) => @x * y
241 ["dsd-dsd"]#: 123 241 <"dsd-dsd">: 123
242 :add 242 :add
243 :add# 243 :<add>
244 244
245nil 245nil