aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/metatable.yue
diff options
context:
space:
mode:
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