diff options
author | Li Jin <dragon-fly@qq.com> | 2021-03-08 21:02:05 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-03-08 21:02:05 +0800 |
commit | 8acb48264d3ae87e5cdae2fea4207be22cf08a97 (patch) | |
tree | 8f260c52388be52c9fd1b5b9d262300b21771ca8 /spec/inputs/metatable.yue | |
parent | 34326185b0aaf63c0af8b0e8a07f928aa5a74eaf (diff) | |
download | yuescript-8acb48264d3ae87e5cdae2fea4207be22cf08a97.tar.gz yuescript-8acb48264d3ae87e5cdae2fea4207be22cf08a97.tar.bz2 yuescript-8acb48264d3ae87e5cdae2fea4207be22cf08a97.zip |
add new syntax for issue #41. fix a issue for destructure syntax with TableBlock. try fix luarocks installing problem again for issue #42.
Diffstat (limited to 'spec/inputs/metatable.yue')
-rw-r--r-- | spec/inputs/metatable.yue | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/inputs/metatable.yue b/spec/inputs/metatable.yue index 13ea917..100844c 100644 --- a/spec/inputs/metatable.yue +++ b/spec/inputs/metatable.yue | |||
@@ -48,4 +48,15 @@ with tb | |||
48 | b = t#.close#.test | 48 | b = t#.close#.test |
49 | c = t #.close# .test | 49 | c = t #.close# .test |
50 | 50 | ||
51 | #:mt = a | ||
52 | a = #:mt | ||
53 | a = #:__index:mt | ||
54 | |||
55 | local index | ||
56 | #:__index:index = a | ||
57 | :index# = a | ||
58 | |||
59 | do #:{new:ctor, :update} = a | ||
60 | do {new:ctor, :update} = a.# | ||
61 | |||
51 | nil | 62 | nil |