diff options
Diffstat (limited to 'spec/inputs/metatable.yue')
-rw-r--r-- | spec/inputs/metatable.yue | 16 |
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 | |||
37 | mt = a.<> | 37 | mt = a.<> |
38 | 38 | ||
39 | tb\func #list | 39 | tb\func #list |
40 | tb\<func>list | 40 | tb\<"func">list |
41 | tb\<func> list | 41 | tb\<"func"> list |
42 | 42 | ||
43 | import "module" as :<index>, <newindex>:setFunc | 43 | import "module" as :<index>, <newindex>:setFunc |
44 | 44 | ||
45 | with tb | 45 | with 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 | ||
72 | do | 72 | do |
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 | ||
78 | do | 78 | do |
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 |