aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/metatable.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-05-17 15:11:09 +0800
committerLi Jin <dragon-fly@qq.com>2023-05-17 15:11:09 +0800
commit4bd1513262a61071b07f5efe2a3cb9356ce6c8c2 (patch)
treeaaaf73884315aeb436f7bb4020e9bd9c20344c90 /spec/inputs/metatable.yue
parent0c589d36fadba92d547fc6a93a2d5494d4d51981 (diff)
downloadyuescript-4bd1513262a61071b07f5efe2a3cb9356ce6c8c2.tar.gz
yuescript-4bd1513262a61071b07f5efe2a3cb9356ce6c8c2.tar.bz2
yuescript-4bd1513262a61071b07f5efe2a3cb9356ce6c8c2.zip
fix spec.v0.16.5
Diffstat (limited to 'spec/inputs/metatable.yue')
-rw-r--r--spec/inputs/metatable.yue16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/inputs/metatable.yue b/spec/inputs/metatable.yue
index 61cc266..38b7ce5 100644
--- a/spec/inputs/metatable.yue
+++ b/spec/inputs/metatable.yue
@@ -37,14 +37,14 @@ a.<index> = tb
37mt = a.<> 37mt = a.<>
38 38
39tb\func #list 39tb\func #list
40tb\<func>list 40tb\<"func">list
41tb\<func> list 41tb\<"func"> list
42 42
43import "module" as :<index>, <newindex>:setFunc 43import "module" as :<index>, <newindex>:setFunc
44 44
45with tb 45with tb
46 print .<add>, .x\<index> "key" 46 print .<add>, .x\<index> "key"
47 a = .<index>.<add>\<new> 123 47 a = .<index>.<add>\<"new"> 123
48 b = t#.<close>.test 48 b = t#.<close>.test
49 c = t #.<close> .test 49 c = t #.<close> .test
50 50
@@ -70,13 +70,13 @@ do
70 return tb\<["value" .. tostring x > y]>(123, ...) 70 return tb\<["value" .. tostring x > y]>(123, ...)
71 71
72do 72do
73 f = tb\<value>(123, ...) 73 f = tb\<'value'>(123, ...)
74 f tb\<value>(123, ...) 74 f tb\<'value'>(123, ...)
75 tb\<value>(123, ...) 75 tb\<'value'>(123, ...)
76 return tb\<value> 123, ... 76 return tb\<'value'> 123, ...
77 77
78do 78do
79 f = tb.<value> 123, ... 79 f = tb.<["value"]> 123, ...
80 f = tb.<"value#{x < y}">(123, ...) 80 f = tb.<"value#{x < y}">(123, ...)
81 f tb.<'value'> 123, ... 81 f tb.<'value'> 123, ...
82 tb.<[[ value 82 tb.<[[ value